oops - ISMSB was not assigned
authorClaus Gittinger <cg@exept.de>
Tue, 23 Mar 1999 19:49:20 +0100
changeset 2533 3af95252b1b3
parent 2532 6bbf1e00c297
child 2534 35d91dcc4604
oops - ISMSB was not assigned
Image.st
--- a/Image.st	Tue Mar 23 19:42:55 1999 +0100
+++ b/Image.st	Tue Mar 23 19:49:20 1999 +0100
@@ -11235,6 +11235,9 @@
     ].
 
     bitsPerPixelIn := info at:#bitsPerPixel.
+
+    isMSB := ((info at:#byteOrder) == #msbFirst).
+
     "
      Note: bit- and byte ordering doesn't matter for palette images!!
     "
@@ -11318,7 +11321,6 @@
             shR2 := (8 - device bitsRed).
             shG2 := (8 - device bitsGreen).
             shB2 := (8 - device bitsBlue).
-            isMSB := (byteOrder == #msbFirst).
 
             ((bitsPerPixelIn == 32) and:[bitsPerPixel == 24]) ifTrue:[
                 "/ 'reformatting 32->24...' printNL.
@@ -11590,6 +11592,6 @@
 !Image class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Image.st,v 1.267 1999-03-23 18:42:55 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Image.st,v 1.268 1999-03-23 18:49:20 cg Exp $'
 ! !
 Image initialize!