X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fgpulib%2Fvout_pl.c;h=e8f959f6251173c41b1dc09b30a5975ed5231e21;hb=26d28fa4c30a23da7507ae226508103a470edc26;hp=c166b572113026c29d806e18f46424167a48edac;hpb=7a20a6d03b86989f57b4ef2bb49dc3b4a36f41f1;p=pcsx_rearmed.git diff --git a/plugins/gpulib/vout_pl.c b/plugins/gpulib/vout_pl.c index c166b572..e8f959f6 100644 --- a/plugins/gpulib/vout_pl.c +++ b/plugins/gpulib/vout_pl.c @@ -29,9 +29,11 @@ static void check_mode_change(int force) { int w = gpu.screen.hres; int h = gpu.screen.vres; - int w_out = w; - int h_out = h; + int w_out, h_out; + if (gpu.state.screen_centering_type == C_BORDERLESS) + h = gpu.screen.h; + w_out = w, h_out = h; #ifdef RAW_FB_DISPLAY w = w_out = 1024, h = h_out = 512; #endif @@ -93,6 +95,8 @@ void vout_update(void) if (!gpu.state.enhancement_was_active) return; // buffer not ready yet vram = gpu.get_enhancement_bufer(&src_x, &src_y, &w, &h, &vram_h); + if (vram == NULL) + return; x *= 2; y *= 2; src_x2 *= 2; }