From: notaz Date: Tue, 1 Jun 2010 14:02:15 +0000 (+0000) Subject: fix emuloop init to use correct pal value X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=commitdiff_plain;h=b120fe04313728fcaa4c3759280e88cccb7ef05c fix emuloop init to use correct pal value git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@876 be3aeb3a-fb24-0410-a615-afba39da0efa --- 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;