mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +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:
parent
b2f3caa1a4
commit
506f263c13
|
@ -476,10 +476,8 @@ struct ObjCoordinates
|
||||||
|
|
||||||
f32 frameW = _FIXED2FLOAT(_pObjScaleBg->frameW, 2);
|
f32 frameW = _FIXED2FLOAT(_pObjScaleBg->frameW, 2);
|
||||||
f32 frameH = _FIXED2FLOAT(_pObjScaleBg->frameH, 2);
|
f32 frameH = _FIXED2FLOAT(_pObjScaleBg->frameH, 2);
|
||||||
//f32 imageW = (f32)(_pObjScaleBg->imageW >> 2);
|
f32 imageW = (f32)((_pObjScaleBg->imageW >> 2) & 0xFFFFFFFE);
|
||||||
//f32 imageH = (f32)(_pObjScaleBg->imageH >> 2);
|
f32 imageH = (f32)((_pObjScaleBg->imageH >> 2) & 0xFFFFFFFE);
|
||||||
f32 imageW = (f32)gSP.bgImage.width;
|
|
||||||
f32 imageH = (f32)gSP.bgImage.height;
|
|
||||||
|
|
||||||
if (u32(imageW) == 512 && (config.generalEmulation.hacks & hack_RE2) != 0u) {
|
if (u32(imageW) == 512 && (config.generalEmulation.hacks & hack_RE2) != 0u) {
|
||||||
const f32 width = f32(*REG.VI_WIDTH);
|
const f32 width = f32(*REG.VI_WIDTH);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user