]> cvs.zerfleddert.de Git - micropolis/blobdiff - src/sim/w_x.c
automatically detect byteorder of X server
[micropolis] / src / sim / w_x.c
index a00d55182f5ad45b022dda9cd1fba3627f14b468..76e9ff6eb6392a87b4f551f7feed35d2d178094e 100644 (file)
@@ -584,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;
 
Impressum, Datenschutz