[PATCH] SDL_GetVideoMode() do not find the best video mode


I have a problem on my target platform, where my video modes are not
always sorted by width then height.

I found than SDL_GetVideoMode() was not choosing the right video mode
(i.e. the smallest available which is bigger than the one asked). For
example, it was selecting a 640x400 mode, when 336x224 was asked and a
384x240 mode was available,

Here is a patch for the needed function.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: SDL_video.c.diff
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050606/71e598cd/attachment.asc