diff --git a/configure.py b/configure.py index ba24c9837..2698aee8c 100644 --- a/configure.py +++ b/configure.py @@ -827,7 +827,7 @@ config.libs = [ Object(Matching, "JSystem/JUtility/JUTVideo.cpp"), Object(NonMatching, "JSystem/JUtility/JUTXfb.cpp"), Object(Matching, "JSystem/JUtility/JUTFader.cpp"), - Object(NonMatching, "JSystem/JUtility/JUTProcBar.cpp"), + Object(Matching, "JSystem/JUtility/JUTProcBar.cpp"), Object(NonMatching, "JSystem/JUtility/JUTConsole.cpp"), Object(Matching, "JSystem/JUtility/JUTDirectFile.cpp"), Object(Matching, "JSystem/JUtility/JUTGba.cpp"), diff --git a/include/JSystem/JUtility/JUTVideo.h b/include/JSystem/JUtility/JUTVideo.h index 5aa5497ab..a4d5a37fd 100644 --- a/include/JSystem/JUtility/JUTVideo.h +++ b/include/JSystem/JUtility/JUTVideo.h @@ -33,7 +33,7 @@ public: width = (u16)getFbWidth(); height = (u16)getEfbHeight(); } - u32 getXfbHeight() const { return mRenderObj->xfb_height; } + u32 getXfbHeight() const { return mRenderObj->xfb_height & 0xFFFF; } u32 isAntiAliasing() const { return mRenderObj->antialiasing; } Pattern getSamplePattern() const { return mRenderObj->sample_pattern; } u8* getVFilter() const { return mRenderObj->vfilter; } diff --git a/src/JSystem/JUtility/JUTProcBar.cpp b/src/JSystem/JUtility/JUTProcBar.cpp index 72e79e59b..d5aa03142 100644 --- a/src/JSystem/JUtility/JUTProcBar.cpp +++ b/src/JSystem/JUtility/JUTProcBar.cpp @@ -12,12 +12,11 @@ /* 802C882C-802C8944 .text __ct__10JUTProcBarFv */ // missing instruction JUTProcBar::JUTProcBar() { - /* Nonmatching */ mVisible = true; mHeapBarVisible = true; field_0x108 = 0; - u32 height = JUTVideo::getManager()->getXfbHeight(); - if (height > 400) { + u16 height = JUTVideo::getManager()->getXfbHeight(); + if (JUTVideo::getManager()->getXfbHeight() > 400) { mParams.setBarWidth(2); mParams.setPosition(39, height - 40); mParams.setWidth(562);