Vita: Clean up merged commit

This commit is contained in:
Vicki Pfau 2020-08-02 15:40:34 -07:00
parent 404b743855
commit 7caac4ae44
2 changed files with 2 additions and 3 deletions

View File

@ -55,6 +55,7 @@ Other fixes:
- Qt: Add missing option for Wisdom Tree in overrides list - Qt: Add missing option for Wisdom Tree in overrides list
- Util: Fix crash if PNG header fails to write - Util: Fix crash if PNG header fails to write
- SM83: Simplify register pair access on big endian - SM83: Simplify register pair access on big endian
- Vita: Fix flickering when using frameskip (fixes mgba.io/i/1822)
- Wii: Fix pixelated filtering on interframe blending (fixes mgba.io/i/1830) - Wii: Fix pixelated filtering on interframe blending (fixes mgba.io/i/1830)
Misc: Misc:
- 3DS: Use "wide mode" where applicable for slightly better filtering - 3DS: Use "wide mode" where applicable for slightly better filtering

View File

@ -584,15 +584,13 @@ void _drawTex(vita2d_texture* t, unsigned width, unsigned height, bool faded, bo
} }
void mPSP2Swap(struct mGUIRunner* runner) { void mPSP2Swap(struct mGUIRunner* runner) {
bool frameAvailable; bool frameAvailable = true;
if (runner->core->platform(runner->core) == PLATFORM_GBA) { if (runner->core->platform(runner->core) == PLATFORM_GBA) {
struct GBA* gba = runner->core->board; struct GBA* gba = runner->core->board;
frameAvailable = gba->video.frameskipCounter <= 0; frameAvailable = gba->video.frameskipCounter <= 0;
} else if (runner->core->platform(runner->core) == PLATFORM_GB) { } else if (runner->core->platform(runner->core) == PLATFORM_GB) {
struct GB* gb = runner->core->board; struct GB* gb = runner->core->board;
frameAvailable = gb->video.frameskipCounter <= 0; frameAvailable = gb->video.frameskipCounter <= 0;
} else {
frameAvailable = false;
} }
if (frameAvailable) { if (frameAvailable) {
currentTex = !currentTex; currentTex = !currentTex;