The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
WxWidgets And SDL
Diego G. R.
Guest

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/
WxWidgets And SDL
Josh Matthews
Guest

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. <malvadao at dr.com> wrote:
Quote:

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060402/08998d0c/attachment.htm
WxWidgets And SDL
Diego G. R.
Guest

Quote:
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/