Fix possible bug in CortBox2
Cppcheck was complaining about duplicate conditions
This commit is contained in:
parent
10d946aca2
commit
cd276d94be
1 changed files with 2 additions and 2 deletions
|
@ -375,8 +375,8 @@ void CortBox2(RECT *rect, uint32_t col, int surf_no)
|
|||
|
||||
SDL_SetRenderTarget(gRenderer, surf[surf_no].texture);
|
||||
|
||||
const unsigned char col_red = col & 0xFF0000 >> 16;
|
||||
const unsigned char col_green = col & 0x00FF00 >> 8;
|
||||
const unsigned char col_red = (col & 0xFF0000) >> 16;
|
||||
const unsigned char col_green = (col & 0x00FF00) >> 8;
|
||||
const unsigned char col_blue = col & 0x0000FF;
|
||||
const unsigned char col_alpha = (col_red || col_green || col_blue) ? 0xFF : 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue