Re: [AD] COLORCONV_KEEP_TRANS in datafiles + cleanup |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
> > Btw, I think I just spotted something else which I'll also try to find a fix > for, in fixup_datafile(): > I tried using dat2s/fixup_datafile instead of load_datafile in your test program, and the error really showed up. The last 2 lines in the patch are related to this. Maybe I should try to come up with something which looks a bit nicer and uses bitmap_mask_color()? (The docs don't even mention that any flags have an effect on fixup_datafile, but ignoring it seems wrong..) Besides this, I fixed the un-needed drawing_mode now, and the 2nd case level for 15bit. I also tested RLE_SPRITES, luckily control and databytes are never mixed there so no problems with any conversions. They work even when data-bytes get the same value as the EOL marker. So after this patch, it should be possible to load any bitmap data into any colordepth, and transparency would be preserved when the KEEP_TRANS flag is set. -- Elias Pschernig
Attachment:
datafile.c.diff.gz
Description: GNU Zip compressed data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |