aboutsummaryrefslogtreecommitdiff
path: root/frontend/plugin_lib.c
diff options
context:
space:
mode:
authornotaz2012-11-27 03:07:07 +0200
committernotaz2012-11-28 18:49:33 +0200
commit02783d0b37a8b8c2d220f931e5bb2be2036dff87 (patch)
treef63314bca20465c73307f80eafed6a89c0c6d498 /frontend/plugin_lib.c
parent06d2e1a58b6eb7fb449f79f7e807343bd8d39b59 (diff)
downloadpcsx_rearmed-02783d0b37a8b8c2d220f931e5bb2be2036dff87.tar.gz
pcsx_rearmed-02783d0b37a8b8c2d220f931e5bb2be2036dff87.tar.bz2
pcsx_rearmed-02783d0b37a8b8c2d220f931e5bb2be2036dff87.zip
frontend: update caanoo port
Diffstat (limited to 'frontend/plugin_lib.c')
-rw-r--r--frontend/plugin_lib.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c
index a0f16e9..400e9ff 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);
@@ -359,7 +362,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);