diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2006-03-14 15:27:15 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2006-03-14 15:27:15 +0000 |
| commit | f1ed62cead95b1370e4282c2bf3303aa2d75803a (patch) | |
| tree | baff6d6569d959ee1be76ec8bc61b232bd37ecdb /render/color.c | |
| parent | bc1f845ada8b07dc246373706da676979a9973d2 (diff) | |
fix 1bit bitmaps on msbfirst architectures + some indentation fixes
Diffstat (limited to 'render/color.c')
| -rw-r--r-- | render/color.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/render/color.c b/render/color.c index 9f053e97..c53a366e 100644 --- a/render/color.c +++ b/render/color.c @@ -154,7 +154,7 @@ void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im) data += im->width; p16 += im->bytes_per_line/2; } - break; + break; case 8: g_assert(RrVisual(inst)->class != TrueColor); for (y = 0; y < im->height; y++) { @@ -163,12 +163,11 @@ void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im) data[x] >> RrDefaultRedOffset, data[x] >> RrDefaultGreenOffset, data[x] >> RrDefaultBlueOffset)->pixel; + } + data += im->width; + p8 += im->bytes_per_line; } - data += im->width; - p8 += im->bytes_per_line; - } - - break; + break; default: g_warning("your bit depth is currently unhandled\n"); } @@ -204,9 +203,10 @@ static void swap_byte_order(XImage *im) c[0] = c[1]; c[1] = t; case 8: + case 1: break; default: - g_warning("your bit depth is currently unhandled"); + g_warning("Your bit depth is currently unhandled"); } } di += im->bytes_per_line; |
