ubb-vga/ppmimg.c (pattern): corrected the pattern for un-doubled pixels

This commit is contained in:
Werner Almesberger
2011-04-28 00:59:30 -03:00
parent 080978ade0
commit f0eda51391
+1 -1
View File
@@ -24,7 +24,7 @@ char *img_name;
static uint8_t pattern(int r, int g, int b)
{
return ((r ? R_VAL : 0) | (g ? G_VAL : 0) | (b ? B_VAL : 0))*0x11;
return (r ? R_VAL : 0) | (g ? G_VAL : 0) | (b ? B_VAL : 0);
}