mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-10 19:16:45 -04:00
Fix JUTXfb fakematch
This match (with the u32 cast) is more likely to be the real match based on the inlines called in TP debug.
This commit is contained in:
@@ -27,8 +27,8 @@ public:
|
||||
static void postRetraceProc(u32);
|
||||
static void drawDoneCallback();
|
||||
|
||||
u32 getFbWidth() const { return mRenderObj->fb_width; }
|
||||
u32 getEfbHeight() const { return mRenderObj->efb_height; }
|
||||
u16 getFbWidth() const { return mRenderObj->fb_width; }
|
||||
u16 getEfbHeight() const { return mRenderObj->efb_height; }
|
||||
void getBounds(u16& width, u16& height) const {
|
||||
width = (u16)getFbWidth();
|
||||
height = (u16)getEfbHeight();
|
||||
|
||||
@@ -35,9 +35,9 @@ JUTXfb::JUTXfb(const _GXRenderModeObj* pObj, JKRHeap* pHeap, JUTXfb::EXfbNumber
|
||||
GXRenderModeObj* obj = JUTVideo::getManager()->getRenderMode();
|
||||
initiate(obj->fb_width, obj->xfb_height, pHeap, xfbNum);
|
||||
#else
|
||||
u16 fb_width = JUTVideo::getManager()->getFbWidth();
|
||||
u16 efb_height = JUTVideo::getManager()->getEfbHeight();
|
||||
u16 xfb_height = JUTVideo::getManager()->getXfbHeight();
|
||||
u16 fb_width = JUTVideo::getManager()->getRenderMode()->fb_width;
|
||||
u16 efb_height = (u32)JUTVideo::getManager()->getRenderMode()->efb_height;
|
||||
u16 xfb_height = JUTVideo::getManager()->getRenderMode()->xfb_height;
|
||||
f32 scale_factor = GXGetYScaleFactor(efb_height, xfb_height);
|
||||
u16 xfb_lines = GXGetNumXfbLines(efb_height, scale_factor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user