From 40a628dc349c1ee41a4389be9ab8e5b634edc240 Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Tue, 20 Oct 2020 23:45:30 +0200 Subject: [PATCH] resetwin(): force creation of new save_pixmap even if no resize *if* preview_window==1, since we *want* a different pixmap for preview --- src/actions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/actions.c b/src/actions.c index ac8194fe..eb767b30 100644 --- a/src/actions.c +++ b/src/actions.c @@ -216,7 +216,8 @@ void resetwin(int create_pixmap, int clear_pixmap, int preview_window) areaw = areax2-areax1; areah = areay2-areay1; - if( xschem_w !=xrect[0].width || xschem_h !=xrect[0].height) { /* 20171123 avoid unnecessary work if no resize */ + /* if no preview window avoid unnecessary work if no resize */ + if(preview_window || xschem_w !=xrect[0].width || xschem_h !=xrect[0].height) { dbg(1, "resetwin(): x=%d y=%d xschem_w=%d xschem_h=%d\n", wattr.x, wattr.y, xschem_w,xschem_h); dbg(1, "resetwin(): changing size\n\n");