fix misleading-indentation warnings

master
rofl0r 5 years ago
parent 32d1229359
commit afa153e187

@ -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;

@ -18,7 +18,8 @@ char *path_search(char *name, char *mode, char *path)
char *p, *n;
int l;
if (buf) free(buf); buf = 0;
if (buf) free(buf);
buf = 0;
if (!path || !*path || *name == '/')
return (buf = strdup(name));

Loading…
Cancel
Save