X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/6a5fa4e03967ab980cdc7ef96a42400bc29b4414..bab3cfa09c08ea30c99b416a5ec4c6c90a937d27:/src/sim/w_x.c diff --git a/src/sim/w_x.c b/src/sim/w_x.c index a6472a0..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; @@ -1156,7 +1160,7 @@ DoResizeView(SimView *view, int w, int h) view->pixel_bytes = 4; //view->pixel_bytes = 3; view->depth = 24; - bitmap_depth = 32; + bitmap_depth = 24; bitmap_pad = 32; view->line_bytes8 = ((view->m_width * 4) + 3) & (~3);