X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/6a5fa4e03967ab980cdc7ef96a42400bc29b4414..6ae3b055556cfa72d72bfbc4e5a2516a72f7d60b:/src/sim/w_x.c diff --git a/src/sim/w_x.c b/src/sim/w_x.c index a6472a0..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; @@ -1156,7 +1163,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);