From 8cfa737d4e9cf94b623e6fb0d625e9196748acfb Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Wed, 16 Jan 2008 23:15:09 +0100 Subject: [PATCH] fix for crash when falling back from shared memory to wired mode. (the big_tile_pixmap is inaccessible while it is recreated, so do not try to access it) --- src/sim/g_bigmap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sim/g_bigmap.c b/src/sim/g_bigmap.c index d70225d..2b2bb9d 100644 --- a/src/sim/g_bigmap.c +++ b/src/sim/g_bigmap.c @@ -310,9 +310,11 @@ WireDrawBeegMapRect(SimView *view, short x, short y, short w, short h) if (tile != *ha) { *ha = tile; - XCopyArea(view->x->dpy, view->x->big_tile_pixmap, view->pixmap, + if (view->x->big_tile_pixmap) { + XCopyArea(view->x->dpy, view->x->big_tile_pixmap, view->pixmap, view->x->gc, 0, tile * 16, 16, 16, col * 16, row * 16); + } } } map += mm; -- 2.39.2