X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/276e43bad96799ae902957a247aae6c7d44ff975..5a6a8ae5829f6f2836cb58d35629c5fa1f7eb4ba:/src/sim/w_x.c diff --git a/src/sim/w_x.c b/src/sim/w_x.c index e32aeed..ef42536 100644 --- a/src/sim/w_x.c +++ b/src/sim/w_x.c @@ -456,9 +456,7 @@ FindXDisplay(Tk_Window tkwin) } else { fprintf(stderr, "Cool, I found the shared memory extension!\n"); - fprintf(stderr, - "Disabled SHM, because it is currently broken!\n"); - xd->shared = 0; + xd->shared = 1; } } } @@ -613,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); } @@ -1246,6 +1242,9 @@ DoResizeView(SimView *view, int w, int h) } } } + + GetViewTiles(view); + }