32x: mode2 draw, debug, poll detection
authornotaz <notasas@gmail.com>
Fri, 18 Sep 2009 12:06:42 +0000 (12:06 +0000)
committernotaz <notasas@gmail.com>
Fri, 18 Sep 2009 12:06:42 +0000 (12:06 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@783 be3aeb3a-fb24-0410-a615-afba39da0efa

common/menu.c

index 1788033..8673784 100644 (file)
@@ -1797,14 +1797,18 @@ static void debug_menu_loop(void)
                                        g_screen_width, spr_offs);\r
                                draw_text_debug(PDebugSpriteList(), spr_offs, 6);\r
                                break;\r
+                       case 4: plat_video_menu_begin();\r
+                               tmp = PDebug32x();\r
+                               draw_text_debug(tmp, 0, 0);\r
+                               break;\r
                }\r
                plat_video_menu_end();\r
 \r
                inp = in_menu_wait(PBTN_MOK|PBTN_MBACK|PBTN_MA2|PBTN_MA3|PBTN_L|PBTN_R |\r
                                        PBTN_UP|PBTN_DOWN|PBTN_LEFT|PBTN_RIGHT, 70);\r
                if (inp & PBTN_MBACK) return;\r
-               if (inp & PBTN_L) { mode--; if (mode < 0) mode = 3; }\r
-               if (inp & PBTN_R) { mode++; if (mode > 3) mode = 0; }\r
+               if (inp & PBTN_L) { mode--; if (mode < 0) mode = 4; }\r
+               if (inp & PBTN_R) { mode++; if (mode > 4) mode = 0; }\r
                switch (mode)\r
                {\r
                        case 0:\r