X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/93200bebd82795ae3fa18226d8e31e0be9e0f1cc..851812f3fc226d30b4dc26ba147977e9511a82ee:/src/sim/w_x.c?ds=sidebyside diff --git a/src/sim/w_x.c b/src/sim/w_x.c index 69363b5..4f4c10e 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; } } } @@ -488,6 +490,7 @@ SimView * InitNewView(SimView *view, char *title, int class, int w, int h) { int type, i; + int test = 1; int d = 8; unsigned long valuemask = 0; char *t; @@ -582,6 +585,10 @@ InitNewView(SimView *view, char *title, int class, int w, int h) view->type = X_Mem_View; } + /* XXX: Find cases where transaltion is needed */ + view->x->needs_swap = 0; + + GetPixmaps(view->x); view->pixels = view->x->pixels;