match JFWDisplay

This commit is contained in:
LagoLunatic
2023-11-12 03:28:50 -05:00
parent 8ab08c8844
commit b22bf1d2a8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -148,9 +148,9 @@ void JFWDisplay::exchangeXfb_double() {
}
}
const u32 idx = xfbMng->getDrawingXfbIndex();
s16 idx = xfbMng->getDrawingXfbIndex();
xfbMng->setDrawnXfbIndex(idx);
xfbMng->setDrawingXfbIndex(((idx >> 31) - 1) & (idx ^ 1)); //not sure what this math is doing
xfbMng->setDrawingXfbIndex(idx >= 0 ? idx ^ 1 : 0);
}
else {
clearEfb(mClearColor);