diff --git a/ubb-vga/ppmimg.c b/ubb-vga/ppmimg.c index d15f064..e475817 100644 --- a/ubb-vga/ppmimg.c +++ b/ubb-vga/ppmimg.c @@ -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); }