X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fgpulib%2Fvout_pl.c;h=cae35a3f2351d9752fd31a67a1d049dee896621c;hb=47c15995b0a92b55272accea2b4033bc4872c46c;hp=26827d0e9de6bedd20a909b3b1b2b3d7a2ee6246;hpb=308c6e678a2f0a56a9dee35307070550354f580c;p=pcsx_rearmed.git diff --git a/plugins/gpulib/vout_pl.c b/plugins/gpulib/vout_pl.c index 26827d0e..cae35a3f 100644 --- a/plugins/gpulib/vout_pl.c +++ b/plugins/gpulib/vout_pl.c @@ -75,8 +75,11 @@ void vout_update(void) check_mode_change(0); if (gpu.state.enhancement_active) { + if (!gpu.state.enhancement_was_active) + return; // buffer not ready yet vram = gpu.get_enhancement_bufer(&src_x, &src_y, &w, &h, &vram_h); x *= 2; y *= 2; + src_x2 *= 2; } if (src_y + h > vram_h) { @@ -111,7 +114,7 @@ void vout_blank(void) cbs->pl_vout_flip(NULL, 1024, !!(gpu.status & PSX_GPU_STATUS_RGB24), 0, 0, w, h, 0); } -long GPUopen(void **unused) +long GPUopen(unsigned long *disp, char *cap, char *cfg) { gpu.frameskip.active = 0; gpu.frameskip.frame_ready = 1;