diff --git a/buttons.c b/buttons.c index 5c89064e..6f5e841d 100644 --- a/buttons.c +++ b/buttons.c @@ -1506,7 +1506,7 @@ void Button_Resolution(void) default: // Boutons de tag des états des modes temp=list_start+clicked_button-8; - if (temp && // On n'a pas le droit de cocher le mode fenêtré + if (Video_mode[temp].Fullscreen==1 && // On n'a pas le droit de cocher le mode fenêtré !(Video_mode[temp].State & 128)) // Ni ceux non détectés par SDL { if (Window_attribute1==LEFT_SIDE) diff --git a/gfx2.cfg b/gfx2.cfg index cd5959d5..43f249a8 100644 Binary files a/gfx2.cfg and b/gfx2.cfg differ diff --git a/init.c b/init.c index f943c99c..82da41c7 100644 --- a/init.c +++ b/init.c @@ -1671,7 +1671,13 @@ void Set_all_video_modes(void) for (index=0; Modes[index]; index++) { int index2; - for (index2=1; index2 < Nb_video_modes; index2++) +#if defined(__GP2X__) + // On the GP2X the first mode is not windowed, so include it in the search. + index2=0; +#else + index2=1; +#endif + for (/**/; index2 < Nb_video_modes; index2++) if (Modes[index]->w == Video_mode[index2].Width && Modes[index]->h == Video_mode[index2].Height) { @@ -1813,7 +1819,12 @@ int Load_CFG(int reload_all) !Read_word_le(Handle, &cfg_video_mode.Height) ) goto Erreur_lecture_config; - for (index2=1; index2=320)) - Video_mode[0].Width = values[0]; - if ((values[1]>=200)) - Video_mode[0].Height = values[1]; + Video_mode[0].Width = 640; + Video_mode[0].Height = 480; + if (!Load_INI_get_values (file,buffer,"Default_window_size",2,values)) + { + if ((values[0]>=320)) + Video_mode[0].Width = values[0]; + if ((values[1]>=200)) + Video_mode[0].Height = values[1]; + } } conf->Mouse_merge_movement=100;