[AD] Another GFX_SAFE patch, now the demo (fwd) |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Hi. I am sending this again. Pine tells me it got through, but it's been already more than 24 hours and I got other replies from the list, so I am presuming to be seeing ghosts in my MUA. ---------- Forwarded message ---------- Date: Sun, 17 Dec 2000 18:03:11 +0100 (CET) From: Grzegorz Adam Hankiewicz <gregorio@xxxxxxxxxx> To: Allegro Conductors <conductors@xxxxxxxxxx> Subject: Another GFX_SAFE patch, now the demo Hi. Here's a patch which makes the Allegro demo game work on any color depth. I touched modesel.c a little bit too. BTW, why doesn't gfx_mode_select wrap around gfx_mode_select_ex? Wouldn't it be 'natural'? Since this patch shows that it's not so easy to write games supporting every color depth, I think I'm going to write some functions which given a datafile convert all of it's BMP/RLE sprites to the actual color depth, so that you could do something like this in a program: set_gfx_mode(GFX_SAFE, 0, 0, 0, 0) data = load_datafile ("data.dat"); convert_datafile_graphics (data, data[GAME_PAL].dat); Does that look right? Any visible problems with such code? Grzegorz Adam Hankiewicz gradha@xxxxxxxxxx - http://gradha.infierno.org Other web pages: http://glub.ehu.es/ - http://welcome.to/gogosoftware/
Attachment:
allegro_gfx_safe_3.gz
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |