mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-09 14:32:41 +00:00
Keep -vet happy
This commit is contained in:
@@ -3,8 +3,6 @@ package all
|
||||
|
||||
import c_tokenizer "core:c/frontend/tokenizer"
|
||||
import c_preprocessor "core:c/frontend/preprocessor"
|
||||
import virtual "core:mem/virtual"
|
||||
|
||||
_ :: c_tokenizer
|
||||
_ :: c_preprocessor
|
||||
_ :: virtual
|
||||
|
||||
2
vendor/fontstash/fontstash.odin
vendored
2
vendor/fontstash/fontstash.odin
vendored
@@ -1067,7 +1067,7 @@ TextIterNext :: proc(
|
||||
iter.x = iter.nextx
|
||||
iter.y = iter.nexty
|
||||
iter.codepointCount += 1
|
||||
if glyph, ok := __getGlyph(ctx, iter.font, iter.codepoint, iter.isize, iter.iblur); ok {
|
||||
if glyph, glyph_ok := __getGlyph(ctx, iter.font, iter.codepoint, iter.isize, iter.iblur); glyph_ok {
|
||||
__getQuad(ctx, iter.font, iter.previousGlyphIndex, glyph, iter.scale, iter.spacing, &iter.nextx, &iter.nexty, quad)
|
||||
iter.previousGlyphIndex = glyph.index
|
||||
} else {
|
||||
|
||||
4
vendor/nanovg/nanovg.odin
vendored
4
vendor/nanovg/nanovg.odin
vendored
@@ -916,8 +916,8 @@ CreateImageMem :: proc(ctx: ^Context, data: []byte, imageFlags: ImageFlags) -> i
|
||||
return 0
|
||||
}
|
||||
|
||||
data := img[:int(w) * int(h) * int(n)]
|
||||
image := CreateImageRGBA(ctx, int(w), int(h), imageFlags, data)
|
||||
pixel_data := img[:int(w) * int(h) * int(n)]
|
||||
image := CreateImageRGBA(ctx, int(w), int(h), imageFlags, pixel_data)
|
||||
stbi.image_free(img)
|
||||
return image
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user