mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
generic, fix debug menu rendering
This commit is contained in:
parent
946c3b0ef5
commit
db8af214be
2 changed files with 8 additions and 2 deletions
|
@ -1014,6 +1014,10 @@ static void debug_menu_loop(void)
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
menu_draw_begin(1, 0);
|
menu_draw_begin(1, 0);
|
||||||
|
g_screen_ptr = g_menuscreen_ptr;
|
||||||
|
g_screen_width = g_menuscreen_w;
|
||||||
|
g_screen_height = g_menuscreen_h;
|
||||||
|
g_screen_ppitch = g_menuscreen_pp;
|
||||||
switch (mode)
|
switch (mode)
|
||||||
{
|
{
|
||||||
case 0: tmp = PDebugMain();
|
case 0: tmp = PDebugMain();
|
||||||
|
|
|
@ -365,7 +365,8 @@ void emu_video_mode_change(int start_line, int line_count, int start_col, int co
|
||||||
out_y = start_line; out_x = start_col;
|
out_y = start_line; out_x = start_col;
|
||||||
out_h = line_count; out_w = col_count;
|
out_h = line_count; out_w = col_count;
|
||||||
|
|
||||||
plat_video_loop_prepare(); // recalculates g_screen_w/h
|
if (! render_bg)
|
||||||
|
plat_video_loop_prepare(); // recalculates g_screen_w/h
|
||||||
PicoDrawSetCallbacks(NULL, NULL);
|
PicoDrawSetCallbacks(NULL, NULL);
|
||||||
// center output in screen
|
// center output in screen
|
||||||
screen_w = g_screen_width, screen_x = (screen_w - out_w)/2;
|
screen_w = g_screen_width, screen_x = (screen_w - out_w)/2;
|
||||||
|
@ -403,7 +404,8 @@ void emu_video_mode_change(int start_line, int line_count, int start_col, int co
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
plat_video_set_size(screen_w, screen_h);
|
if (! render_bg)
|
||||||
|
plat_video_set_size(screen_w, screen_h);
|
||||||
|
|
||||||
if (screen_w < g_screen_width)
|
if (screen_w < g_screen_width)
|
||||||
screen_x = (g_screen_width - screen_w)/2;
|
screen_x = (g_screen_width - screen_w)/2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue