1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Correct GraphicsDrawer::_updateScreenCoordsViewport

Fixed starcraft intro movie in OnePiece bg mode.
This commit is contained in:
Sergey Lipskiy 2020-06-28 18:22:21 +07:00
parent 80b219effa
commit 30e7b83e43

View File

@ -302,7 +302,7 @@ void GraphicsDrawer::_updateScreenCoordsViewport(const FrameBuffer * _pBuffer) c
viewportScaleX = viewportScaleY = pCurrentBuffer->m_scale;
X = roundup(f32(pCurrentBuffer->m_originX), viewportScaleX);
Y = roundup(f32(pCurrentBuffer->m_originY), viewportScaleY);
if (RSP.LLE) {
if (RSP.LLE || gSP.viewport.width == 0) {
gSP.viewport.width = f32(bufferWidth);
gSP.viewport.height = f32(bufferHeight);
}