From 1df246664f4e9a4cb8a647641a9b6f031b9977db Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Tue, 29 Oct 2024 09:55:27 +0100 Subject: [PATCH] Fix image.which_bytes Invert test in `which_bytes` to fix Softimage PIC detection. Fixes #4429. --- core/image/general.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/image/general.odin b/core/image/general.odin index f12b6410b..c4a884071 100644 --- a/core/image/general.odin +++ b/core/image/general.odin @@ -193,7 +193,7 @@ which_bytes :: proc(data: []byte) -> Which_File_Type { return .HDR case s[:4] == "\x38\x42\x50\x53": return .PSD - case s[:4] != "\x53\x80\xF6\x34" && s[88:92] == "PICT": + case s[:4] == "\x53\x80\xF6\x34" && s[88:92] == "PICT": return .PIC case s[:4] == "\x69\x63\x6e\x73": return .ICNS