]> git.zerfleddert.de Git - micropolis/blobdiff - src/sim/w_x.c
disable shm for now
[micropolis] / src / sim / w_x.c
index a6472a030c03028f1dbfbdf11338242d9f8a82f8..a00d55182f5ad45b022dda9cd1fba3627f14b468 100644 (file)
@@ -441,7 +441,9 @@ FindXDisplay(Tk_Window tkwin)
        } else {
          fprintf(stderr,
                  "Cool, I found the shared memory extension!\n");
-         xd->shared = 1;
+         fprintf(stderr,
+                 "Disabled SHM, because it is currently broken!\n");
+         xd->shared = 0;
        }
       }
     }
@@ -1156,7 +1158,7 @@ DoResizeView(SimView *view, int w, int h)
          view->pixel_bytes = 4;
          //view->pixel_bytes = 3;
          view->depth = 24;
-         bitmap_depth = 32;
+         bitmap_depth = 24;
          bitmap_pad = 32;
          view->line_bytes8 =
            ((view->m_width * 4) + 3) & (~3);
Impressum, Datenschutz