Even more style fixes

This commit is contained in:
gingerBill
2024-06-29 19:11:36 +01:00
parent 3f9a58808c
commit 5413a8b744
17 changed files with 41 additions and 46 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
if .info in options {
options |= {.return_metadata, .do_not_decompress_image}
options += {.return_metadata, .do_not_decompress_image}
options -= {.info}
}
+2 -2
View File
@@ -341,7 +341,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
options := options
if .info in options {
options |= {.return_metadata, .do_not_decompress_image}
options += {.return_metadata, .do_not_decompress_image}
options -= {.info}
}
@@ -354,7 +354,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
}
if .do_not_expand_channels in options {
options |= {.do_not_expand_grayscale, .do_not_expand_indexed}
options += {.do_not_expand_grayscale, .do_not_expand_indexed}
}
if img == nil {
+1 -1
View File
@@ -176,7 +176,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
options := options
if .info in options {
options |= {.return_metadata, .do_not_decompress_image}
options += {.return_metadata, .do_not_decompress_image}
options -= {.info}
}
+1 -1
View File
@@ -100,7 +100,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
}
if .info in options {
options |= {.return_metadata, .do_not_decompress_image}
options += {.return_metadata, .do_not_decompress_image}
options -= {.info}
}