- darken_screen();\r
- PDebugShowSpriteStats((unsigned short *)SCREEN_BUFFER + (SCREEN_HEIGHT/2 - 240/2)*SCREEN_WIDTH +\r
- SCREEN_WIDTH/2 - 320/2, SCREEN_WIDTH); break;\r
- case 3: clear_screen();\r
- PDebugShowPalette(SCREEN_BUFFER, SCREEN_WIDTH);\r
- PDebugShowSprite((unsigned short *)SCREEN_BUFFER + SCREEN_WIDTH*120+SCREEN_WIDTH/2+16,\r
- SCREEN_WIDTH, spr_offs);\r
+ menu_darken_bg(g_screen_ptr, g_screen_width * g_screen_height, 0);\r
+ PDebugShowSpriteStats((unsigned short *)g_screen_ptr + (g_screen_height/2 - 240/2)*g_screen_width +\r
+ g_screen_width/2 - 320/2, g_screen_width); break;\r
+ case 3: memset(g_screen_ptr, 0, g_screen_width * g_screen_height * 2);\r
+ PDebugShowPalette(g_screen_ptr, g_screen_width);\r
+ PDebugShowSprite((unsigned short *)g_screen_ptr + g_screen_width*120 + g_screen_width/2 + 16,\r
+ g_screen_width, spr_offs);\r