From b120fe04313728fcaa4c3759280e88cccb7ef05c Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 1 Jun 2010 14:02:15 +0000 Subject: [PATCH] fix emuloop init to use correct pal value git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@876 be3aeb3a-fb24-0410-a615-afba39da0efa --- common/emu.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/common/emu.c b/common/emu.c index a075abd..b1927c1 100644 --- a/common/emu.c +++ b/common/emu.c @@ -1428,6 +1428,14 @@ void emu_loop(void) Pico.m.dirtyPal = 1; rendstatus_old = -1; + PicoLoopPrepare(); + + // prepare CD buffer + if (PicoAHW & PAHW_MCD) + PicoCDBufferInit(); + + pemu_loop_prep(); + /* number of ticks per frame */ if (Pico.m.pal) { target_fps = 50; @@ -1437,13 +1445,6 @@ void emu_loop(void) target_frametime = ms_to_ticks(1000) / 60 + 1; } - // prepare CD buffer - if (PicoAHW & PAHW_MCD) - PicoCDBufferInit(); - PicoLoopPrepare(); - - pemu_loop_prep(); - timestamp_fps = get_ticks(); reset_timing = 1; -- 2.39.5