|
masked_blit problem |
Paladin
Member #6,645
December 2005
|
Ok, I have started up a simple pong clone for something to do, and I'm attempting to blit the title using masked blit. media = load_datafile("media.dat"); masked_blit(media[TITLE].dat, screen, 0, 0, SCREEN_W/2 - 147, 25, 294, 54); //TITLE is equal to 1, the number inside the dat file The problem with this, is the pink is still showing. I'm not sure if I'm making a deadly obvious mistake, or there's something else wrong. I've tried changing the color depth from 8 to 16, 24, and 32 and they all just distort it and change it to bright silver like colors. Has anyone ever had a problem like this? |
Thomas Fjellstrom
Member #476
June 2000
|
1. Make sure the datafile was loaded after set_gfx_mode -- |
Paladin
Member #6,645
December 2005
|
I called set_color_depth(32) before I set the gfx mode and that did the trick. I thought you didn't have to set the color depth at all though. |
Thomas Fjellstrom
Member #476
June 2000
|
If you never set the color depth before set_gfx_mode allegro chooses 8bit. Always. -- |
|