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

FrameBufferList::renderBuffer(): fix dstScaleX when overscan enabled in native-res mode.

This commit is contained in:
Sergey Lipskiy 2020-07-01 21:59:51 +07:00
parent 30e7b83e43
commit 5907cff6c7

View File

@ -1469,7 +1469,7 @@ void FrameBufferList::renderBuffer()
const f32 viScaleX = _FIXED2FLOAT(_SHIFTR(*REG.VI_X_SCALE, 0, 12), 10);
const f32 srcScaleX = pFilteredBuffer->m_scale;
const f32 dstScaleX = dwnd().getWidth() / (640 * viScaleX);
const f32 dstScaleX = m_overscan.getDrawingWidth() / (640 * viScaleX);
const s32 hx0 = rdpRes.vi_h_start + rdpRes.vi_minhpass;
const s32 h0 = (rdpRes.vi_ispal ? 128 : 108);
const s32 hEnd = _SHIFTR(*REG.VI_H_START, 0, 10);