Date:2011-04-28 05:59:30 (12 years 11 months ago)
Author:Werner Almesberger
Commit:f0eda51391b3515cf64d23b1e24f78be802a859b
Message:ubb-vga/ppmimg.c (pattern): corrected the pattern for un-doubled pixels

Files: ubb-vga/ppmimg.c (1 diff)

Change Details

ubb-vga/ppmimg.c
2424
2525static uint8_t pattern(int r, int g, int b)
2626{
27    return ((r ? R_VAL : 0) | (g ? G_VAL : 0) | (b ? B_VAL : 0))*0x11;
27    return (r ? R_VAL : 0) | (g ? G_VAL : 0) | (b ? B_VAL : 0);
2828}
2929
3030

Archive Download the corresponding diff file

Branches:
master



interactive