MCPcopy Create free account
hub / github.com/doldecomp/mkdd / endGX

Method endGX

libs/JSystem/JFramework/JFWDisplay.cpp:215–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void JFWDisplay::endGX() {
216 f32 width = JUTVideo::getManager()->getFbWidth();
217 f32 height = JUTVideo::getManager()->getEfbHeight();
218
219 J2DOrthoGraph ortho(0.0f, 0.0f, width, height, -1.0f, 1.0f);
220
221 if (mFader != nullptr) {
222 ortho.setPort();
223 mFader->control();
224 }
225 ortho.setPort();
226 JUTDbPrint::getManager()->flush();
227
228 if (JUTConsoleManager::getManager() != nullptr) {
229 ortho.setPort();
230 JUTConsoleManager::getManager()->draw();
231 }
232
233 ortho.setPort();
234 JUTProcBar::getManager()->draw();
235
236 if (mDrawDoneMethod != UNK_METHOD_0 || JUTXfb::getManager()->getBufferNum() == 1) {
237 JUTAssertion::flushMessage_dbPrint();
238 }
239 GXFlush();
240}
241
242#ifdef HIO_SCREENSHOT
243// for MKDD's screenshot function it seems, not sure why it was added here in JSystem

Callers

nothing calls this directly

Calls 8

flushMessage_dbPrintFunction · 0.85
getFbWidthMethod · 0.80
controlMethod · 0.80
getBufferNumMethod · 0.80
getEfbHeightMethod · 0.45
setPortMethod · 0.45
flushMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected