--- 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!