X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpulib%2Fgpu.c;h=337e27a7ad98182c5450a989e5876bf8f5038bdc;hp=53fe0bcdd864349f0a748a744b73c58df6fa703a;hb=c4c66b22ae607aa8dc5e6983f7ab030ead01faae;hpb=97e07db913cf94c05b338a86a0525476472fddb2 diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c index 53fe0bcd..337e27a7 100644 --- a/plugins/gpulib/gpu.c +++ b/plugins/gpulib/gpu.c @@ -68,10 +68,11 @@ static noinline void update_width(void) static noinline void update_height(void) { + // TODO: emulate this properly.. int sh = gpu.screen.y2 - gpu.screen.y1; if (gpu.status.dheight) sh *= 2; - if (sh <= 0) + if (sh <= 0 || sh > gpu.screen.vres) sh = gpu.screen.vres; gpu.screen.h = sh;