SDL_ListModes on winCE

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.

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)

This has been entered in bugzilla:
https://bugzilla.libsdl.org/show_bug.cgi?id=65

Could you go to that bug and enter any comments you have on that fix?

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

This has been entered in bugzilla:
https://bugzilla.libsdl.org/show_bug.cgi?id=65

Could you go to that bug and enter any comments you have on that fix?

(Actually, I beat you to it…we have a new PocketPC/WinCE driver in CVS
that should support SDL_ListModes correctly, as of yesterday or so.)

–ryan.

(Actually, I beat you to it…we have a new PocketPC/WinCE driver in CVS
that should support SDL_ListModes correctly, as of yesterday or so.)

cheer

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment