]> git.zerfleddert.de Git - micropolis/commitdiff
fix real cause of crash when falling back to wire mode
authorMichael Gernoth <michael@gernoth.net>
Wed, 16 Jan 2008 23:43:49 +0000 (00:43 +0100)
committerMichael Gernoth <michael@gernoth.net>
Wed, 16 Jan 2008 23:43:49 +0000 (00:43 +0100)
src/sim/g_bigmap.c
src/sim/w_x.c

index 2b2bb9dd04ca41d604162433f21a2ff714f1d5d8..d70225d5171c89f080ad1edaaec300958746a34e 100644 (file)
@@ -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;
index 3ad6c04cc9b527ac9e4e14b31676de0101fb1a6f..ef42536588ef0d8d535c104d17f5fd017fbb8f9d 100644 (file)
@@ -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);
+
 }
 
 
Impressum, Datenschutz