]> git.zerfleddert.de Git - micropolis/blobdiff - src/sim/g_bigmap.c
Enable warnings and fix them, all of them
[micropolis] / src / sim / g_bigmap.c
index 2b2bb9dd04ca41d604162433f21a2ff714f1d5d8..55bb06f9e4741c71a1d055aa7ea29424203e9ae2 100644 (file)
 
 
 int dynamicFilter(int c, int r);
-int WireDrawBeegMapRect(SimView *view, short x, short y, short w, short h);
 
+void
 drawBeegMaps()
 {
   sim_update_editors();
 }
 
 
+void
 MemDrawBeegMapRect(SimView *view, int x, int y, int w, int h)
 {
   int lineBytes = view->line_bytes;
@@ -264,6 +265,7 @@ MemDrawBeegMapRect(SimView *view, int x, int y, int w, int h)
 }
 
 
+void
 WireDrawBeegMapRect(SimView *view, short x, short y, short w, short h)
 {
   unsigned short *map;
@@ -310,11 +312,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;
Impressum, Datenschutz