use SWAP_BYTES macro, if defined
authorClaus Gittinger <cg@exept.de>
Sat, 01 Aug 1998 15:53:25 +0200
changeset 2214 452bd64584d6
parent 2213 84035dc560e0
child 2215 f7183f306690
use SWAP_BYTES macro, if defined
Depth2Image.st
--- a/Depth2Image.st	Fri Jul 31 20:13:08 1998 +0200
+++ b/Depth2Image.st	Sat Aug 01 15:53:25 1998 +0200
@@ -222,8 +222,13 @@
 #ifdef MSBFIRST
                 ((short *)dstPtr)[0] = v;
 #else
+# ifdef SWAP_BYTES
+		SWAP_BYTES(v);
+		((short *)dstPtr)[0] = v;
+# else
                 dstPtr[0] = (v>>8) & 0xFF;
                 dstPtr[1] = (v) & 0xFF;
+# endif
 #endif
                 dstPtr += 2;
 
@@ -943,5 +948,5 @@
 !Depth2Image class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Depth2Image.st,v 1.32 1998-07-29 11:18:53 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Depth2Image.st,v 1.33 1998-08-01 13:53:25 cg Exp $'
 ! !