1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-30 08:24:05 +00:00

Correct imageW/imageH calculation in ObjCoordinates again.

fixes #2617 RE2 bottom of the screen is being cut off
This commit is contained in:
Sergey Lipskiy 2021-12-19 20:53:09 +07:00
parent b2f3caa1a4
commit 506f263c13

View File

@ -476,10 +476,8 @@ struct ObjCoordinates
f32 frameW = _FIXED2FLOAT(_pObjScaleBg->frameW, 2);
f32 frameH = _FIXED2FLOAT(_pObjScaleBg->frameH, 2);
//f32 imageW = (f32)(_pObjScaleBg->imageW >> 2);
//f32 imageH = (f32)(_pObjScaleBg->imageH >> 2);
f32 imageW = (f32)gSP.bgImage.width;
f32 imageH = (f32)gSP.bgImage.height;
f32 imageW = (f32)((_pObjScaleBg->imageW >> 2) & 0xFFFFFFFE);
f32 imageH = (f32)((_pObjScaleBg->imageH >> 2) & 0xFFFFFFFE);
if (u32(imageW) == 512 && (config.generalEmulation.hacks & hack_RE2) != 0u) {
const f32 width = f32(*REG.VI_WIDTH);