X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/3fec6683f3fb3d8354310bb1010511d200752e6c..2d56c40cb9008f8a235bf1dfec4bc2ca98ee7406:/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); + }