]> cvs.zerfleddert.de Git - micropolis/blobdiff - src/sim/g_smmaps.c
Fix for shared memory leak by Kurt Miller.
[micropolis] / src / sim / g_smmaps.c
index b29199b092f11d4199144caddbe09cfc8378f9ff..84b7a474045623e91eea170d83518dd276a81883 100644 (file)
@@ -141,10 +141,10 @@ int DynamicData[32];
 #define BE_ROW3_24 BE_ROW1_24(0) BE_ROW1_24(1) BE_ROW1_24(2)
 #define BE_ROW3_32 BE_ROW1_32(0) BE_ROW1_32(1) BE_ROW1_32(2)
 
-#define ROW3_8 if (view->x->big_endian) { BE_ROW3_8 } else { LE_ROW3_8 }
-#define ROW3_16 if (view->x->big_endian) { BE_ROW3_16 } else { LE_ROW3_16 }
-#define ROW3_24 if (view->x->big_endian) { BE_ROW3_24 } else { LE_ROW3_24 }
-#define ROW3_32 if (view->x->big_endian) { BE_ROW3_32 } else { LE_ROW3_32 }
+#define ROW3_8 if (view->x->needs_swap) { BE_ROW3_8 } else { LE_ROW3_8 }
+#define ROW3_16 LE_ROW3_16
+#define ROW3_24 LE_ROW3_24
+#define ROW3_32 LE_ROW3_32
 
 #define ROW3 \
          switch (view->x->depth) { \
Impressum, Datenschutz