win32-save opengl filter option

This commit is contained in:
zeromus 2013-05-03 20:29:14 +00:00
parent a0adb77ed5
commit bf35d0af3f
1 changed files with 3 additions and 1 deletions

View File

@ -2864,6 +2864,8 @@ int _main()
if(GetPrivateProfileBool("Video","Window Always On Top", false, IniName)) style |= DWS_ALWAYSONTOP; if(GetPrivateProfileBool("Video","Window Always On Top", false, IniName)) style |= DWS_ALWAYSONTOP;
if(GetPrivateProfileBool("Video","Window Lockdown", false, IniName)) style |= DWS_LOCKDOWN; if(GetPrivateProfileBool("Video","Window Lockdown", false, IniName)) style |= DWS_LOCKDOWN;
if(GetPrivateProfileBool("Video","Display Method Filter", false, IniName))
style |= DWS_FILTER;
if(GetPrivateProfileBool("Video","VSync", false, IniName)) if(GetPrivateProfileBool("Video","VSync", false, IniName))
style |= DWS_VSYNC; style |= DWS_VSYNC;
int dispMethod = GetPrivateProfileInt("Video","Display Method", DISPMETHOD_DDRAW_HW, IniName); int dispMethod = GetPrivateProfileInt("Video","Display Method", DISPMETHOD_DDRAW_HW, IniName);
@ -5672,7 +5674,7 @@ DOKEYDOWN:
{ {
Lock lock (win_backbuffer_sync); Lock lock (win_backbuffer_sync);
SetStyle((GetStyle()^DWS_FILTER)); SetStyle((GetStyle()^DWS_FILTER));
WritePrivateProfileInt("Video","Display Method Filter", (GetStyle()^DWS_FILTER)?1:0, IniName); WritePrivateProfileInt("Video","Display Method Filter", (GetStyle()&DWS_FILTER)?1:0, IniName);
} }
break; break;