X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/3fec6683f3fb3d8354310bb1010511d200752e6c..5a6a8ae5829f6f2836cb58d35629c5fa1f7eb4ba:/src/sim/w_x.c diff --git a/src/sim/w_x.c b/src/sim/w_x.c index 3d8dd48..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; } } } @@ -601,6 +599,7 @@ InitNewView(SimView *view, char *title, int class, int w, int h) } view->x->needs_swap = !(*(unsigned char*) (&test)); + view->x->x_big_endian = (ImageByteOrder(view->x->dpy) == MSBFirst); GetPixmaps(view->x); @@ -612,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); } @@ -1245,6 +1242,9 @@ DoResizeView(SimView *view, int w, int h) } } } + + GetViewTiles(view); + }