Fix regression from commit 2acfdbe; setting display method to DDraw HW/SW did not actually set ddraw.systemMemory
This commit is contained in:
parent
2c8909ed3c
commit
c9b41e3c53
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue