Skip to content

Commit

Permalink
Partially revert ef88b2d
Browse files Browse the repository at this point in the history
It actually caused the black screen issue to appear again
for binaries in 32-bit mode.
  • Loading branch information
rdoeffinger committed Aug 18, 2019
1 parent adccd95 commit ef9da46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions impl11/ddraw/Direct3DExecuteBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,14 @@ HRESULT Direct3DExecuteBuffer::Lock(

if (color16 == 0)
{
buffer32[i] = 0x20000000;
buffer32[i] = 0xff000000;
}
else
{
buffer32[i] = convertColorB5G6R5toB8G8R8X8(color16);
}
}
this->_deviceResources->RenderMain(this->_deviceResources->_backbufferSurface->_buffer, this->_deviceResources->_displayWidth, this->_deviceResources->_displayHeight, this->_deviceResources->_displayBpp, RENDERMAIN_NO_COLORKEY);
}
else
{
Expand Down Expand Up @@ -180,9 +181,8 @@ HRESULT Direct3DExecuteBuffer::Lock(
buffer16[i] = 0x2000;
}
}
this->_deviceResources->RenderMain(this->_deviceResources->_backbufferSurface->_buffer, this->_deviceResources->_displayWidth, this->_deviceResources->_displayHeight, this->_deviceResources->_displayBpp, RENDERMAIN_COLORKEY_20);
}
this->_deviceResources->RenderMain(this->_deviceResources->_backbufferSurface->_buffer, this->_deviceResources->_displayWidth, this->_deviceResources->_displayHeight, this->_deviceResources->_displayBpp, RENDERMAIN_COLORKEY_20);

this->_deviceResources->inSceneBackbufferLocked = false;
}

Expand Down

0 comments on commit ef9da46

Please sign in to comment.