X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=frontend%2Fplugin_lib.c;h=0a49872c4b06c308baa56f73bb1ba465f82ffa35;hb=a185be7095b1575c32911d18341f3f99ed686ae5;hp=da25c6e15ed4ade9a36eacec4c2e2c5ab2f9fee4;hpb=5b745e5bbcb51267122821ed9dc1c8c2c77dc100;p=pcsx_rearmed.git diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index da25c6e1..0a49872c 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -109,6 +109,9 @@ static __attribute__((noinline)) void draw_active_chans(void) static void *pl_vout_set_mode(int w, int h, int bpp) { + // special h handling, Wipeout likes to change it by 1-6 + h = (h + 7) & ~7; + if (w == pl_vout_w && h == pl_vout_h && bpp == pl_vout_bpp) return pl_vout_buf; @@ -126,7 +129,10 @@ static void *pl_vout_set_mode(int w, int h, int bpp) if (pl_vout_buf == NULL) fprintf(stderr, "failed to set mode\n"); + + // menu decides on layer size, we commit it menu_notify_mode_change(w, h, bpp); + omap_enable_layer(1); return pl_vout_buf; }