From: Francisco Javier Trujillo Mata Date: Fri, 5 Jan 2024 23:01:22 +0000 (+0100) Subject: Some progress about centering image X-Git-Tag: v2.00~119^2~6 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4a8b47113362738e86b661dc2a9ee7abc6a617c;p=picodrive.git Some progress about centering image --- diff --git a/platform/ps2/emu.c b/platform/ps2/emu.c index 98d2ed06..cd5302c3 100644 --- a/platform/ps2/emu.c +++ b/platform/ps2/emu.c @@ -28,8 +28,6 @@ static int osd_buf_cnt, osd_cdleds; -static int out_x, out_y; -static int out_w, out_h; static float hscale, vscale; static struct in_default_bind in_ps2_defbinds[] = @@ -546,13 +544,11 @@ void plat_status_msg_busy_next(const char *msg) /* clear status message area */ void plat_status_msg_clear(void) { - // not needed since the screen buf is cleared through the GU + // not needed since the screen buf is cleared through the gskit_clear } /* change the audio volume setting */ -void plat_update_volume(int has_changed, int is_up) -{ -} +void plat_update_volume(int has_changed, int is_up) {} /* prepare for MD screen mode change */ void emu_video_mode_change(int start_line, int line_count, int start_col, int col_count) @@ -560,11 +556,11 @@ void emu_video_mode_change(int start_line, int line_count, int start_col, int co int h43 = (col_count >= 192 ? 320 : col_count); // ugh, mind GG... int v43 = (line_count >= 192 ? Pico.m.pal ? 240 : 224 : line_count); - out_y = start_line; out_x = start_col; - out_h = line_count; out_w = col_count; - if (col_count == 248) // mind aspect ratio when blanking 1st column col_count = 256; + + g_screen_vertices[0].uv = vertex_to_UV(g_screen, start_col, start_line); + g_screen_vertices[1].uv = vertex_to_UV(g_screen, col_count, line_count); switch (currentConfig.vscaling) { case EOPT_VSCALE_FULL: