Hi,
Use this sdl version, it will be added in 1.2.9 branch (I hope). Now
it is in beta stage.
It supports:
- SDL_ListModes
- GAPI standard and VGA at the same time
- Landscape orientation (it allows rotating of the screen in run-time)
- 4, 8, 16 bpp of video memory.
- Special support of 8 bpp on 8 bpp devices.
- Supports all possible Pocket PC devices and smartphones
- It is the fastest GAPI patch for SDL.
http://www.activekitten.com/pbc_download/sdl_gapi_ver07.zip
It contains precompiled binaries for all processors and source code.
Feel free to test.> As of the latest SDL source I’ve looked at (1.2.8), SDL_ListModes
returns -1 on winCE, implying any resolution is valid. Would it not
make more sense to return a mode for the current desktop window size?
Code along the lines of:
resx = GetDeviceCaps(GetDC(NULL), HORZRES);
resy = GetDeviceCaps(GetDC(NULL), VERTRES);
should retrieve the info according to research. (test and verify pending)Also, when running in windowed mode it may be desired to know the max
window size that’ll fit.
–
Best regards,
Dmitry Yakimov, ISDEF member
ActiveKitten.com