瀏覽代碼

Fix image.which_bytes

Invert test in `which_bytes` to fix Softimage PIC detection. Fixes #4429.
Jeroen van Rijn 10 月之前
父節點
當前提交
1df246664f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/image/general.odin

+ 1 - 1
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