fix misleading-indentation warnings
This commit is contained in:
parent
32d1229359
commit
afa153e187
9
lcd.c
9
lcd.c
|
@ -746,9 +746,12 @@ static void updatepalette(int i)
|
|||
y = (((r * 263) + (g * 516) + (b * 100)) >> 10) + 16;
|
||||
u = (((r * 450) - (g * 377) - (b * 73)) >> 10) + 128;
|
||||
v = (((r * -152) - (g * 298) + (b * 450)) >> 10) + 128;
|
||||
if (y < 0) y = 0; if (y > 255) y = 255;
|
||||
if (u < 0) u = 0; if (u > 255) u = 255;
|
||||
if (v < 0) v = 0; if (v > 255) v = 255;
|
||||
if (y < 0) y = 0;
|
||||
if (y > 255) y = 255;
|
||||
if (u < 0) u = 0;
|
||||
if (u > 255) u = 255;
|
||||
if (v < 0) v = 0;
|
||||
if (v > 255) v = 255;
|
||||
PAL4[i] = (y<<fb.cc[0].l) | (y<<fb.cc[3].l)
|
||||
| (u<<fb.cc[1].l) | (v<<fb.cc[2].l);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue