diff options
| author | gingerBill <bill@gingerbill.org> | 2024-06-29 19:50:51 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-06-29 19:50:51 +0100 |
| commit | e296d6fb902083fac534bdd4c804e6dbad2fc458 (patch) | |
| tree | 18e0875791d202dc4dde1d148c0786494e2b2b14 /core/image | |
| parent | 90244a0849afe9f17e011dc8c3bae571c9f5bb26 (diff) | |
Fix loads of indentation issues with mixing spaces and tabs
Diffstat (limited to 'core/image')
| -rw-r--r-- | core/image/bmp/bmp.odin | 4 | ||||
| -rw-r--r-- | core/image/qoi/qoi.odin | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/image/bmp/bmp.odin b/core/image/bmp/bmp.odin index dac1b7ab5..a50ad8996 100644 --- a/core/image/bmp/bmp.odin +++ b/core/image/bmp/bmp.odin @@ -71,7 +71,7 @@ save_to_buffer :: proc(output: ^bytes.Buffer, img: ^Image, options := Options{} written := 0 if resize(&output.buf, int(header.size)) != nil { - return .Unable_To_Allocate_Or_Resize + return .Unable_To_Allocate_Or_Resize } header_bytes := transmute([size_of(image.BMP_Header)]u8)header @@ -735,7 +735,7 @@ destroy :: proc(img: ^Image) { bytes.buffer_destroy(&img.pixels) if v, ok := img.metadata.(^image.BMP_Info); ok { - free(v) + free(v) } free(img) } diff --git a/core/image/qoi/qoi.odin b/core/image/qoi/qoi.odin index a121999ea..989e7ca6e 100644 --- a/core/image/qoi/qoi.odin +++ b/core/image/qoi/qoi.odin @@ -230,7 +230,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a bytes_needed := image.compute_buffer_size(int(header.width), int(header.height), img.channels, 8) if resize(&img.pixels.buf, bytes_needed) != nil { - return img, .Unable_To_Allocate_Or_Resize + return img, .Unable_To_Allocate_Or_Resize } /* @@ -341,7 +341,7 @@ destroy :: proc(img: ^Image) { bytes.buffer_destroy(&img.pixels) if v, ok := img.metadata.(^image.QOI_Info); ok { - free(v) + free(v) } free(img) } |