mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix type and keep -vet happy
This commit is contained in:
@@ -752,7 +752,7 @@ autoselect_pbm_format_from_image :: proc(img: ^Image, prefer_binary := true, for
|
|||||||
|
|
||||||
@(init, private)
|
@(init, private)
|
||||||
_register :: proc() {
|
_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)
|
return load_from_buffer(data, allocator)
|
||||||
}
|
}
|
||||||
image.register_loader(.PBM, loader)
|
image.register_loader(.PBM, loader)
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ package tga
|
|||||||
|
|
||||||
import "core:mem"
|
import "core:mem"
|
||||||
import "core:image"
|
import "core:image"
|
||||||
import "core:compress"
|
|
||||||
import "core:bytes"
|
import "core:bytes"
|
||||||
import "core:os"
|
import "core:os"
|
||||||
|
|
||||||
|
|||||||
@@ -166,8 +166,10 @@ _ :: xml
|
|||||||
_ :: fmt
|
_ :: fmt
|
||||||
_ :: hash
|
_ :: hash
|
||||||
_ :: image
|
_ :: image
|
||||||
|
_ :: netpbm
|
||||||
_ :: png
|
_ :: png
|
||||||
_ :: qoi
|
_ :: qoi
|
||||||
|
_ :: tga
|
||||||
_ :: io
|
_ :: io
|
||||||
_ :: log
|
_ :: log
|
||||||
_ :: math
|
_ :: math
|
||||||
|
|||||||
Reference in New Issue
Block a user