SDL 1.3 WinCE backend

Hi,

as promised, I’ve started to work on the WinCE backend of SDL 1.3
I’ve modified the win32 video backend and the gdi renderer, to work
properly in WinCE.
The results till now are great, but there is still some work to do.

Attached are two patches with my changes.
I would be happy if someone could review and propably commit them.

The first one (configure.in.patch) should be straight forward without
any side effects.

The second one does the necessary changes to the win32 backend. I was
really unhappy to start slicing this shiny new backend with
#ifdef/#endif but I saw no other option.

The most problematic issues are:

  • WinCe has no GetDIBits, so its practically impossible to fill a
    BITMAPINFO with correct values. I therefore removed the bmi member from
    the GDI_RenderData in SDL_gdirender.c to prevent usage of a not or not
    properly initialized bmi.
  • In SDL_win32window.c I exchanged some ASCII function by their general
    counterparts, (In CE only the Unicode versions are available). I don’t
    know if this has a negative effect when running in win32

Cheers
Stefan

-------------- next part --------------
A non-text attachment was scrubbed…
Name: configure.in.patch
Type: text/x-patch
Size: 3660 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090205/a92ecfcd/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed…
Name: video_win32.patch
Type: text/x-patch
Size: 11788 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090205/a92ecfcd/attachment-0001.bin

as promised, I’ve started to work on the WinCE backend of SDL 1.3
I’ve modified the win32 video backend and the gdi renderer, to work
properly in WinCE.

Great! I’ve committed your changes to subversion, thanks!

See ya,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC