Fix type and keep -vet happy

This commit is contained in:
gingerBill
2022-05-14 14:47:58 +01:00
parent 5bc866e420
commit e46d87b221
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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)
-1
View File
@@ -12,7 +12,6 @@ package tga
import "core:mem"
import "core:image"
import "core:compress"
import "core:bytes"
import "core:os"
+2
View File
@@ -166,8 +166,10 @@ _ :: xml
_ :: fmt
_ :: hash
_ :: image
_ :: netpbm
_ :: png
_ :: qoi
_ :: tga
_ :: io
_ :: log
_ :: math