Fix many bugs introduced by the gp2x "hack" of not having a windowed mode.

Still not working perfectly, but at least i can manage to get the program in 320x240 by default on gp2x, without modifying the config files.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@856 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-06-11 16:19:45 +00:00
parent 92b5727994
commit 8987f07c8a
5 changed files with 38 additions and 13 deletions

2
misc.c
View File

@@ -798,7 +798,7 @@ int Convert_videomode_arg(const char *argument)
int mode_index;
for (mode_index=0; mode_index<Nb_video_modes; mode_index++)
// Attention les vieilles fonctions de lecture .ini mettent tout en MAJUSCULE.
if (!strcasecmp(Mode_label(mode_index), argument))
if (!strcasecmp(Mode_label(mode_index), argument) && (Video_mode[mode_index].State &128) ==0)
return mode_index;
return -1;