fix emuloop init to use correct pal value
authornotaz <notasas@gmail.com>
Tue, 1 Jun 2010 14:02:15 +0000 (14:02 +0000)
committernotaz <notasas@gmail.com>
Tue, 1 Jun 2010 14:02:15 +0000 (14:02 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@876 be3aeb3a-fb24-0410-a615-afba39da0efa

common/emu.c

index a075abd..b1927c1 100644 (file)
@@ -1428,6 +1428,14 @@ void emu_loop(void)
        Pico.m.dirtyPal = 1;\r
        rendstatus_old = -1;\r
 \r
+       PicoLoopPrepare();\r
+\r
+       // prepare CD buffer\r
+       if (PicoAHW & PAHW_MCD)\r
+               PicoCDBufferInit();\r
+\r
+       pemu_loop_prep();\r
+\r
        /* number of ticks per frame */\r
        if (Pico.m.pal) {\r
                target_fps = 50;\r
@@ -1437,13 +1445,6 @@ void emu_loop(void)
                target_frametime = ms_to_ticks(1000) / 60 + 1;\r
        }\r
 \r
-       // prepare CD buffer\r
-       if (PicoAHW & PAHW_MCD)\r
-               PicoCDBufferInit();\r
-       PicoLoopPrepare();\r
-\r
-       pemu_loop_prep();\r
-\r
        timestamp_fps = get_ticks();\r
        reset_timing = 1;\r
 \r