From: Toni Wilen Date: Sat, 30 Apr 2016 13:55:26 +0000 (+0300) Subject: Check and fix all programmed mode size limits. X-Git-Tag: 3300~42 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=e5119eae0d8f9dceb77cf20fee93f228b161c366;p=francis%2Fwinuae.git Check and fix all programmed mode size limits. --- diff --git a/custom.cpp b/custom.cpp index 2fd3c0e0..6b785ffa 100644 --- a/custom.cpp +++ b/custom.cpp @@ -4063,6 +4063,15 @@ void compute_framesync (void) } + if (gfxvidinfo.drawbuffer.inwidth < 16) + gfxvidinfo.drawbuffer.inwidth = 16; + if (gfxvidinfo.drawbuffer.inwidth2 < 16) + gfxvidinfo.drawbuffer.inwidth2 = 16; + if (gfxvidinfo.drawbuffer.inheight < 1) + gfxvidinfo.drawbuffer.inheight = 1; + if (gfxvidinfo.drawbuffer.inheight2 < 1) + gfxvidinfo.drawbuffer.inheight2 = 1; + if (gfxvidinfo.drawbuffer.inwidth > gfxvidinfo.drawbuffer.width_allocated) gfxvidinfo.drawbuffer.inwidth = gfxvidinfo.drawbuffer.width_allocated; if (gfxvidinfo.drawbuffer.inwidth2 > gfxvidinfo.drawbuffer.width_allocated)