mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-12-27 12:22:24 +02:00
ubb-vga/ppmimg.c (pattern): corrected the pattern for un-doubled pixels
This commit is contained in:
parent
080978ade0
commit
f0eda51391
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user