asm cpu works, added sync()s
[fceu.git] / drivers / gp2x / gp2x-video.c
index 8bd2be1..f7f09bd 100644 (file)
@@ -214,9 +214,12 @@ static INLINE void printFps(uint8 *screen)
                        }
                        if (showfps)
                        {
                        }
                        if (showfps)
                        {
-                               fps_str[2] = 0;
-                               gp2x_text(screen, 0,  0, fps_str,   FPS_COLOR, 0);
-                               gp2x_text(screen, 0, 10, fps_str+3, FPS_COLOR, 0);
+                               int sep;
+                               for (sep=1; sep < 5; sep++)
+                                       if (fps_str[sep] == '/' || fps_str[sep] == 0) break;
+                               fps_str[sep] = 0;
+                               gp2x_text(screen, 0,  0, fps_str,       FPS_COLOR, 0);
+                               gp2x_text(screen, 0, 10, fps_str+sep+1, FPS_COLOR, 0);
                        }
                        needfpsflip--;
                }
                        }
                        needfpsflip--;
                }