From: Michael Gernoth Date: Wed, 16 Jan 2008 23:43:49 +0000 (+0100) Subject: fix real cause of crash when falling back to wire mode X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/commitdiff_plain/06fa6a70a8ac0c94b675f748d91f968ed6c6578e fix real cause of crash when falling back to wire mode --- 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); + }