commit 9e181b441ab2dcd3ac929910361f802019eb854c
parent 869b4415ed08771acef515a3da3acd185fb893d4
Author: Andy Williams <andy@andy.xyz>
Date: Mon, 13 Apr 2020 12:01:49 +0100
Mistakenly added unsupported image formats (#3)
Apologies for this, partially reverting #1 from 2 days ago. Adding il32 and it32 wasn't the correct fix as the image loader does not support masked RGB. It seemed to improve rendering because of issues in the parser which are now fixed.
Removing these two lines leaves the same success in parsing and rendering without attempting to load images that will fail as it's not PNG/Jpeg data it will find.
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/icns.go b/icns.go
@@ -151,10 +151,8 @@ var osTypes = []OsType{
{ID: "ic13", Size: uint(256)},
{ID: "ic08", Size: uint(256)},
{ID: "ic07", Size: uint(128)},
- {ID: "it32", Size: uint(128)},
{ID: "ic12", Size: uint(64)},
{ID: "ic11", Size: uint(32)},
- {ID: "il32", Size: uint(32)},
}
// getTypeFromSize returns the type for the given icon size (in px).