Add a messagebox informing to restart the game if either VSync or 4x Multisampling has been (de)selected

This commit is contained in:
zicodxx 2008-10-30 15:00:32 +00:00
parent d53a475a58
commit 85b303e5e1
2 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,7 @@ D1X-Rebirth Changelog
--------
INSTALL.txt, README.txt: Docs update: Infos about Jukebox over SDL_mixer, SDL_mixer is not experimental anymore, yet another .de->.com change
d1x.ini, main/inferno.c: Show debug help screen options in release build as well as some might be actually useful for players
main/menu.c: Add a messagebox informing to restart the game if either VSync or 4x Multisampling has been (de)selected
20081029
--------

View file

@ -667,13 +667,16 @@ void do_graphics_menu()
i = newmenu_do1( NULL, "Graphics Options", sizeof(m)/sizeof(*m), m, NULL, i );
if (GameCfg.VSync != m[7].value || GameCfg.Multisample != m[8].value)
nm_messagebox( NULL, 1, TXT_OK, "To apply VSync or 4x Multisample\nyou need to restart the program");
for (j = 0; j <= 2; j++)
if (m[j+1].value)
GameCfg.TexFilt = j;
PlayerCfg.OglAlphaEffects = m[5].value;
PlayerCfg.OglReticle = m[6].value;
GameCfg.VSync = m[7].value;
GameCfg.Multisample = m[7].value;
GameCfg.Multisample = m[8].value;
gr_set_attributes();
} while( i>-1 );
}