changes for new returned info from getBits
authorClaus Gittinger <cg@exept.de>
Sun, 04 Feb 1996 18:12:49 +0100
changeset 398 2b35bb58a82b
parent 397 094b8604ea72
child 399 0b6e43843204
changes for new returned info from getBits
Form.st
--- a/Form.st	Sun Feb 04 18:11:29 1996 +0100
+++ b/Form.st	Sun Feb 04 18:12:49 1996 +0100
@@ -1445,7 +1445,7 @@
     bytesPerLine := (width * depth + 31) // 32 * 4.
     inData := ByteArray uninitializedNew:(bytesPerLine * height).
     info := device getBitsFrom:drawableId x:0 y:0 width:width height:height into:inData. 
-    bytesPerLineIn := (info at:3).                                "what I got"
+    bytesPerLineIn := (info at:#bytesPerLine).                    "what I got"
     bytesPerLine := (width * depth + 7) // 8.                     "what I want"
     (bytesPerLine ~~ bytesPerLineIn) ifTrue:[
 	"
@@ -1474,7 +1474,7 @@
     "
      have to reverse bytes, if not msbFirst ?
     "
-    (info at:1) == #lsbFirst ifTrue:[
+    (info at:#bitOrder) ~~ #msbFirst ifTrue:[
 	buffer := ByteArray new:bytesPerLine.
 	dstIndex := 1.
 	1 to:height do:[:hi |
@@ -2109,6 +2109,6 @@
 !Form class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Form.st,v 1.32 1995-12-07 10:39:18 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Form.st,v 1.33 1996-02-04 17:12:49 cg Exp $'
 ! !
 Form initialize!