From e5119eae0d8f9dceb77cf20fee93f228b161c366 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 30 Apr 2016 16:55:26 +0300 Subject: [PATCH] Check and fix all programmed mode size limits. --- custom.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.47.3