Fix regression from commit 2acfdbe; setting display method to DDraw HW/SW did not actually set ddraw.systemMemory

This commit is contained in:
SuuperW 2018-08-18 11:22:15 -05:00
parent 2c8909ed3c
commit c9b41e3c53
1 changed files with 2 additions and 1 deletions

View File

@ -5106,6 +5106,7 @@ DOKEYDOWN:
{
Lock lock (win_backbuffer_sync);
displayMethod = DISPMETHOD_DDRAW_HW;
ddraw.systemMemory = false;
WritePrivateProfileInt("Video","Display Method", DISPMETHOD_DDRAW_HW, IniName);
ddraw.createSurfaces(hwnd);
}
@ -5115,6 +5116,7 @@ DOKEYDOWN:
{
Lock lock (win_backbuffer_sync);
displayMethod = DISPMETHOD_DDRAW_SW;
ddraw.systemMemory = true;
WritePrivateProfileInt("Video","Display Method", DISPMETHOD_DDRAW_SW, IniName);
ddraw.createSurfaces(hwnd);
}
@ -6723,5 +6725,4 @@ void SetStyle(u32 dws)
gldisplay.filter = GetStyle()&DWS_FILTER;
gldisplay.setvsync(!!(GetStyle()&DWS_VSYNC));
ddraw.vSync = GetStyle()&DWS_VSYNC;
ddraw.systemMemory = GetStyle()&DWS_DDRAW_SW;
}