]> git.zerfleddert.de Git - micropolis/blobdiff - src/sim/w_x.c
enable swapping for 8 bit on big endian machines
[micropolis] / src / sim / w_x.c
index 4f4c10e1ea6cc697d141b78635c4048c881ba708..06d3b9eaf49b207009339e192885435c33eaa23f 100644 (file)
@@ -585,8 +585,7 @@ 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;
+  view->x->needs_swap = !(*(unsigned char*) (&test));
 
 
   GetPixmaps(view->x);
@@ -1145,7 +1144,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;
Impressum, Datenschutz