From: Toni Wilen Date: Sun, 3 Jun 2018 16:14:38 +0000 (+0300) Subject: Do not redraw if emulation is not fully initialized yet. X-Git-Tag: 4000~37 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=f35e0847cbb0fe111ef484446fd949e1e1d5e116;p=francis%2Fwinuae.git Do not redraw if emulation is not fully initialized yet. --- 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) {