X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/93200bebd82795ae3fa18226d8e31e0be9e0f1cc..e9c442bbb6d129259d7489eb227dd289c8b3f67c:/src/sim/w_x.c diff --git a/src/sim/w_x.c b/src/sim/w_x.c index 69363b5..76e9ff6 100644 --- a/src/sim/w_x.c +++ b/src/sim/w_x.c @@ -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; } } } @@ -582,6 +584,8 @@ InitNewView(SimView *view, char *title, int class, int w, int h) view->type = X_Mem_View; } + view->x->big_endian = (ImageByteOrder(view->x->dpy) == MSBFirst); + GetPixmaps(view->x); view->pixels = view->x->pixels;