fix: DD_DoDisplay would not update the display if resolution had just been changed
This commit is contained in:
parent
c9b41e3c53
commit
c4ea4ad879
|
@ -457,14 +457,12 @@ static void OGL_DoDisplay()
|
|||
}
|
||||
static void DD_DoDisplay()
|
||||
{
|
||||
if (ddraw.surfDescBack.dwWidth != video.rotatedwidth() || ddraw.surfDescBack.dwHeight != video.rotatedheight())
|
||||
ddraw.createBackSurface(video.rotatedwidth(), video.rotatedheight());
|
||||
|
||||
if (!ddraw.lock()) return;
|
||||
char* buffer = (char*)ddraw.surfDescBack.lpSurface;
|
||||
|
||||
if (ddraw.surfDescBack.dwWidth != video.rotatedwidth() || ddraw.surfDescBack.dwHeight != video.rotatedheight())
|
||||
{
|
||||
ddraw.createBackSurface(video.rotatedwidth(), video.rotatedheight());
|
||||
}
|
||||
|
||||
switch (ddraw.surfDescBack.ddpfPixelFormat.dwRGBBitCount)
|
||||
{
|
||||
case 32:
|
||||
|
|
Loading…
Reference in New Issue