checkin from browser
authorClaus Gittinger <cg@exept.de>
Wed, 02 Aug 2000 12:15:46 +0200
changeset 1386 2d02a4fba456
parent 1385 5c7743c98c75
child 1387 5676f1120ae2
checkin from browser
WindowsIconReader.st
--- a/WindowsIconReader.st	Fri Jul 28 13:59:45 2000 +0200
+++ b/WindowsIconReader.st	Wed Aug 02 12:15:46 2000 +0200
@@ -794,9 +794,13 @@
     "23, ... , 62         ?"
 
     inDepth := header at:16r25.
+    "/ mhmh - some depth4 icons seem to have a 0 in the depth field ...
+    inDepth == 0 ifTrue:[
+        inDepth := 4
+    ].
     inDepth ~~ 4 ifTrue:[
         "/ can only handle depth4 images - for now.
-        ^ self fileFormatError:'only depth 4 ico-images supported'.
+        ^ self fileFormatError:'only depth 4 ico-images supported (depth is ' , inDepth printString , ')'.
     ].
 
     "read the colormap"
@@ -1108,6 +1112,6 @@
 !WindowsIconReader class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/WindowsIconReader.st,v 1.47 2000-07-28 11:59:45 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/WindowsIconReader.st,v 1.48 2000-08-02 10:15:46 cg Exp $'
 ! !
 WindowsIconReader initialize!