X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fplugin_lib.c;h=73ddc825776c0f86c2b4ae2eb82f5f231193c465;hp=a0f16e9324ff30f755b3aa4e96192fb4e1d0df26;hb=f33a0f965a62ca6a8392d16efad00c2bbd878351;hpb=c9099d020a1e523d97541f426f7d44da1392526f diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index a0f16e93..73ddc825 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -146,12 +146,15 @@ static __attribute__((noinline)) void draw_active_chans(int vout_w, int vout_h) } } -void pl_print_hud(int w, int h, int xborder) +static void print_hud(int w, int h, int xborder) { if (h < 16) return; - xborder += (pl_vout_w - w) / 2; + if (w < pl_vout_w) + xborder += (pl_vout_w - w) / 2; + if (h > pl_vout_h) + h = pl_vout_h; if (g_opts & OPT_SHOWSPU) draw_active_chans(w, h); @@ -254,10 +257,6 @@ static void pl_vout_set_mode(int w, int h, int raw_w, int raw_h, int bpp) } #endif - if (pl_vout_buf != NULL && vout_w == pl_vout_w && vout_h == pl_vout_h - && vout_bpp == pl_vout_bpp) - return; - update_layer_size(vout_w, vout_h); pl_vout_buf = plat_gvideo_set_mode(&vout_w, &vout_h, &vout_bpp); @@ -359,7 +358,7 @@ static void pl_vout_flip(const void *vram, int stride, int bgr24, int w, int h) } out_hud: - pl_print_hud(w * pl_vout_scale, h * pl_vout_scale, 0); + print_hud(w * pl_vout_scale, h * pl_vout_scale, 0); out: pcnt_end(PCNT_BLIT);