From 859fff09cd16c4a2e89017294a8fb2d67cb91ead Mon Sep 17 00:00:00 2001 From: laochailan Date: Thu, 9 Aug 2012 21:25:07 +0200 Subject: [PATCH] disabled ingame video mode switching on windows --- src/menu/options.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/menu/options.c b/src/menu/options.c index 8835bc8b..2c868b3f 100644 --- a/src/menu/options.c +++ b/src/menu/options.c @@ -251,7 +251,9 @@ int bind_common_onoffset_inverted(void *b, int v) int bind_fullscreen_set(void *b, int v) { +#ifndef WIN32 video_toggle_fullscreen(); +#endif return bind_common_onoffset(b, v); } @@ -328,8 +330,10 @@ void destroy_options_menu(void *menu) for(i = 0; i < m->ecount; ++i) { if(binds[i].type == BT_Resolution) { if(binds[i].selected != -1) { +#ifndef WIN32 VideoMode *m = &(video.modes[binds[i].selected]); video_setmode(m->width, m->height, tconfig.intval[FULLSCREEN]); +#endif tconfig.intval[VID_WIDTH] = video.intended.width; tconfig.intval[VID_HEIGHT] = video.intended.height;