WxWidgets And SDL

Hi, Im trying to use WxWidgets with SDL and i was having no problem on doing that using the example provided by Technoplaza( http://code.technoplaza.net/wx-sdl/part1/ ).
But When i tried to change the screen color depth from 24 to 32 i messed everything up. Could Anyone help me convert that example’s screen surface from 24 to 32 color depth?

Thansk a lot.–


Play 100s of games for FREE! http://games.mail.com/

You’re going to (at minimum) adapt the pixel code. You’ll need to change
the block where it has #ifdef SDL_BIG_ENDIAN and all that. Look in the SDL
manual for how to place pixels, and you should recognise that code there as
the 24-bit specific version.On 4/2/06, Diego G. R. wrote:

Hi, Im trying to use WxWidgets with SDL and i was having no problem on
doing that using the example provided by Technoplaza(
http://code.technoplaza.net/wx-sdl/part1/ ).
But When i tried to change the screen color depth from 24 to 32 i messed
everything up. Could Anyone help me convert that example’s screen surface
from 24 to 32 color depth?

Thansk a lot.


Play 100s of games for FREE! http://games.mail.com/


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Cheers,
Josh

PGP: http://revvy.box43.net/Josh_Matthews.asc

You’re going to (at minimum) adapt the pixel code. You’ll need to change
the block where it has #ifdef SDL_BIG_ENDIAN and all that. Look in the SDL
manual for how to place pixels, and you should recognise that code there as
the 24-bit specific version.

I tried to do that, and I could successfully change the SDL part to 32 bit(i checked that saving the surface to an BMP), but when I try to show the image using the panel it gets all messed up… Thanks for the help, can anyone else try to solve where the problem is here?–


Play 100s of games for FREE! http://games.mail.com/