[AD] Color conversion problems |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I think there may a bug with the automatic color conversion somewhere - the
following code:
set_color_depth(15);
set_gfx_mode (GFX_AUTODETECT, 320, 200, 320, 200);
BITMAP* test = create_bitmap_ex (16, 320, 200);
... [draw a graphic onto test]
blit (test, screen, 0, 0, 0, 0, 320, 200);
comes out looking wrong with WIP 3.9.36 (Windows), as if the pixels have
just been directly copied from 16-bit to 15-bit without doing the bit
shifting.
If I compile this same code with DOS Allegro 3.11, the result looks fine.
Cheers,
Chris