mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
Fix misleading-indentation warnings in cl_cin.c
This commit is contained in:
parent
e78da55a75
commit
51ca4d35ea
1 changed files with 12 additions and 4 deletions
|
@ -577,8 +577,12 @@ static unsigned short yuv_to_rgb( long y, long u, long v )
|
|||
g = (YY + ROQ_UG_tab[u] + ROQ_VG_tab[v]) >> 8;
|
||||
b = (YY + ROQ_UB_tab[u]) >> 9;
|
||||
|
||||
if (r<0) r = 0; if (g<0) g = 0; if (b<0) b = 0;
|
||||
if (r > 31) r = 31; if (g > 63) g = 63; if (b > 31) b = 31;
|
||||
if (r<0) r = 0;
|
||||
if (g<0) g = 0;
|
||||
if (b<0) b = 0;
|
||||
if (r > 31) r = 31;
|
||||
if (g > 63) g = 63;
|
||||
if (b > 31) b = 31;
|
||||
|
||||
return (unsigned short)((r<<11)+(g<<5)+(b));
|
||||
}
|
||||
|
@ -598,8 +602,12 @@ static unsigned int yuv_to_rgb24( long y, long u, long v )
|
|||
g = (YY + ROQ_UG_tab[u] + ROQ_VG_tab[v]) >> 6;
|
||||
b = (YY + ROQ_UB_tab[u]) >> 6;
|
||||
|
||||
if (r<0) r = 0; if (g<0) g = 0; if (b<0) b = 0;
|
||||
if (r > 255) r = 255; if (g > 255) g = 255; if (b > 255) b = 255;
|
||||
if (r<0) r = 0;
|
||||
if (g<0) g = 0;
|
||||
if (b<0) b = 0;
|
||||
if (r > 255) r = 255;
|
||||
if (g > 255) g = 255;
|
||||
if (b > 255) b = 255;
|
||||
|
||||
return LittleLong ((r)|(g<<8)|(b<<16)|(255<<24));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue