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 | ||
---|---|---|
24 | 24 | |
25 | 25 | static uint8_t pattern(int r, int g, int b) |
26 | 26 | { |
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); | |
28 | 28 | } |
29 | 29 | |
30 | 30 |
Branches:
master