X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/efad9d6d0b164bd37c84a9581dbf6397c7ffb3fa..0ac8627d3110b429d57db91538cf1f07d6428e72:/src/sim/w_x.c diff --git a/src/sim/w_x.c b/src/sim/w_x.c index 513072e..0d68209 100644 --- a/src/sim/w_x.c +++ b/src/sim/w_x.c @@ -585,10 +585,8 @@ InitNewView(SimView *view, char *title, int class, int w, int h) view->type = X_Mem_View; } - if ((ImageByteOrder(view->x->dpy) == MSBFirst) == !(*(unsigned char*) (&test))) - view->x->needs_swap = 0; - else - view->x->needs_swap = 1; + /* XXX: Find cases where transaltion is needed */ + view->x->needs_swap = 0; GetPixmaps(view->x); @@ -1147,7 +1145,7 @@ DoResizeView(SimView *view, int w, int h) view->pixel_bytes = 2; view->depth = 15; bitmap_pad = 16; - bitmap_depth = 16; + bitmap_depth = 15; view->line_bytes8 = ((view->m_width * view->pixel_bytes) + 3) & (~3); break;