From 06fa6a70a8ac0c94b675f748d91f968ed6c6578e Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Thu, 17 Jan 2008 00:43:49 +0100 Subject: [PATCH] fix real cause of crash when falling back to wire mode --- src/sim/g_bigmap.c | 4 +--- src/sim/w_x.c | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sim/g_bigmap.c b/src/sim/g_bigmap.c index 2b2bb9d..d70225d 100644 --- a/src/sim/g_bigmap.c +++ b/src/sim/g_bigmap.c @@ -310,11 +310,9 @@ WireDrawBeegMapRect(SimView *view, short x, short y, short w, short h) if (tile != *ha) { *ha = tile; - if (view->x->big_tile_pixmap) { - XCopyArea(view->x->dpy, view->x->big_tile_pixmap, view->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; diff --git a/src/sim/w_x.c b/src/sim/w_x.c index 3ad6c04..ef42536 100644 --- a/src/sim/w_x.c +++ b/src/sim/w_x.c @@ -611,8 +611,6 @@ InitNewView(SimView *view, char *title, int class, int w, int h) view->pan_x = w / 2; view->pan_y = h / 2; DoResizeView(view, w, h); - GetViewTiles(view); - return (view); } @@ -1244,6 +1242,9 @@ DoResizeView(SimView *view, int w, int h) } } } + + GetViewTiles(view); + } -- 2.39.5