From: notaz Date: Fri, 4 Jan 2013 21:50:05 +0000 (+0200) Subject: gpulib: limit height X-Git-Tag: r18~10 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74df590696210f20503a2e15bae404978e3a3553;p=pcsx_rearmed.git gpulib: limit height --- 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;