From f35e0847cbb0fe111ef484446fd949e1e1d5e116 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 3 Jun 2018 19:14:38 +0300 Subject: [PATCH] Do not redraw if emulation is not fully initialized yet. --- drawing.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drawing.cpp b/drawing.cpp index a5d34380..329f1ba5 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -4000,6 +4000,9 @@ void full_redraw_all(void) { int monid = 0; struct amigadisplay *ad = &adisplays[monid]; + struct vidbuf_description *vidinfo = &adisplays[monid].gfxvidinfo; + if (!vidinfo->drawbuffer.height_allocated || !amiga2aspect_line_map) + return; notice_screen_contents_lost(monid); gfxboard_refresh(monid); if (!ad->picasso_on) { -- 2.47.3