mirror of https://github.com/mgba-emu/mgba.git
PSP2: Make sure framelimiter is on in menus
This commit is contained in:
parent
563aed44d8
commit
9efb41ecd5
|
@ -30,12 +30,12 @@ static void _drawStart(void) {
|
|||
}
|
||||
|
||||
static void _drawEnd(void) {
|
||||
static int oldVCount = 0;
|
||||
static int vcount = 0;
|
||||
extern bool frameLimiter;
|
||||
int vcount = oldVCount;
|
||||
int oldVCount = vcount;
|
||||
vita2d_end_drawing();
|
||||
oldVCount = sceDisplayGetVcount();
|
||||
vita2d_set_vblank_wait(frameLimiter && oldVCount + 1 >= vcount);
|
||||
vcount = sceDisplayGetVcount();
|
||||
vita2d_set_vblank_wait(frameLimiter && vcount + 1 >= oldVCount);
|
||||
vita2d_swap_buffers();
|
||||
}
|
||||
|
||||
|
|
|
@ -305,6 +305,7 @@ void mPSP2Paused(struct mGUIRunner* runner) {
|
|||
0
|
||||
};
|
||||
sceCtrlSetActuator(1, &state);
|
||||
frameLimiter = true;
|
||||
}
|
||||
|
||||
void mPSP2Unpaused(struct mGUIRunner* runner) {
|
||||
|
|
Loading…
Reference in New Issue