[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
This patch fixes problems whith fixup_datafile that converted 24bpp bitmaps
to wrong colors.
/Christer
--- datafile.c Thu May 22 21:18:14 2003
+++ src/datafile.c Thu May 22 20:47:14 2003
@@ -1753,8 +1753,8 @@
g = bmp->line[y][x*3+1];
b = bmp->line[y][x*3+2];
bmp->line[y][x*3+_rgb_r_shift_24/8] = r;
- bmp->line[y][x*3+_rgb_r_shift_24/8] = g;
- bmp->line[y][x*3+_rgb_r_shift_24/8] = b;
+ bmp->line[y][x*3+_rgb_g_shift_24/8] = g;
+ bmp->line[y][x*3+_rgb_b_shift_24/8] = b;
}
}
break;