1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-16 19:13:09 +02:00

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

View File

@ -24,7 +24,7 @@ char *img_name;
static uint8_t pattern(int r, int g, int b) 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);
} }