From e46d87b2210a1e2f0aa95827808f3b69b11f17dc Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 14 May 2022 14:47:58 +0100 Subject: [PATCH] Fix type and keep -vet happy --- core/image/netpbm/netpbm.odin | 2 +- core/image/tga/tga.odin | 1 - examples/all/all_main.odin | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/image/netpbm/netpbm.odin b/core/image/netpbm/netpbm.odin index fb88cdc8c..83c8a2f59 100644 --- a/core/image/netpbm/netpbm.odin +++ b/core/image/netpbm/netpbm.odin @@ -752,7 +752,7 @@ autoselect_pbm_format_from_image :: proc(img: ^Image, prefer_binary := true, for @(init, private) _register :: proc() { - loader :: proc(data: []byte, options: Options, allocator: mem.Allocator) -> (img: ^Image, err: Error) { + loader :: proc(data: []byte, options: image.Options, allocator: mem.Allocator) -> (img: ^Image, err: Error) { return load_from_buffer(data, allocator) } image.register_loader(.PBM, loader) diff --git a/core/image/tga/tga.odin b/core/image/tga/tga.odin index 0539706b3..67a088eb5 100644 --- a/core/image/tga/tga.odin +++ b/core/image/tga/tga.odin @@ -12,7 +12,6 @@ package tga import "core:mem" import "core:image" -import "core:compress" import "core:bytes" import "core:os" diff --git a/examples/all/all_main.odin b/examples/all/all_main.odin index 5a0bc4d3e..36326b48e 100644 --- a/examples/all/all_main.odin +++ b/examples/all/all_main.odin @@ -166,8 +166,10 @@ _ :: xml _ :: fmt _ :: hash _ :: image +_ :: netpbm _ :: png _ :: qoi +_ :: tga _ :: io _ :: log _ :: math