From 6c8d48e4e1f70427cf4f91fa8f0d70b9bc1f72b6 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 8 Oct 2016 17:04:28 +0300 Subject: [PATCH] Can happen in bad programmed mode. --- drawing.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drawing.cpp b/drawing.cpp index 8336db01..092d2a4d 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -1103,6 +1103,8 @@ STATIC_INLINE void fill_line_32 (uae_u8 *buf, int start, int stop, bool blank) static void pfield_do_fill_line (int start, int stop, bool blank) { + if (stop <= start) + return; switch (gfxvidinfo.drawbuffer.pixbytes) { case 2: fill_line_16 (xlinebuffer, start, stop, blank); break; case 4: fill_line_32 (xlinebuffer, start, stop, blank); break; -- 2.47.3