fix bug with outside bunds calc for VEFontCache.cache_glyph
This commit is contained in:
parent
314582b225
commit
3402701f99
@ -466,8 +466,8 @@ cache_glyph :: proc( ctx : ^Context, font : FontID, glyph_index : Glyph, scale,
|
||||
bounds_0, bounds_1 := parser_get_glyph_box( & entry.parser_info, glyph_index )
|
||||
|
||||
outside := Vec2 {
|
||||
f32(bounds_0.x - 21),
|
||||
f32(bounds_0.y - 33),
|
||||
f32(bounds_0.x) - 21,
|
||||
f32(bounds_0.y) - 33,
|
||||
}
|
||||
|
||||
// Note(Original Author): Figure out scaling so it fits within our box.
|
||||
|
@ -51,7 +51,7 @@ render :: proc()
|
||||
// ve_ctx := & font_provider.ve_font_cache
|
||||
|
||||
// Triangle Demo
|
||||
if true
|
||||
if false
|
||||
{
|
||||
using debug.gfx_tri_demo_state
|
||||
sokol_gfx.begin_pass(sokol_gfx.Pass { action = pass_action, swapchain = sokol_glue.swapchain() })
|
||||
|
Loading…
Reference in New Issue
Block a user