fix scroll bar

This commit is contained in:
Krzosa Karol
2025-01-26 22:06:55 +01:00
parent 8ae6e15bf8
commit a8cf9bfee9
6 changed files with 151 additions and 77 deletions

View File

@@ -96,7 +96,7 @@ fn v2f32_t rn_base_draw_string(rn_font_t *font, s8_t string, v2f32_t pos, v4f32_
for (utf8_iter_t iter = utf8_iterate_ex(string.str, (int)string.len); iter.item; utf8_advance(&iter)) {
u32 codepoint = iter.item;
rn_glyph_t *g = rn_get_glyph(font, codepoint);
r2f32_t rect = r2f32_mindim(v2f32_add(pos, g->offset), g->size);
r2f32_t rect = r2f32_min_dim(v2f32_add(pos, g->offset), g->size);
if (draw && codepoint != '\n' && codepoint != ' ' && codepoint != '\t') {
rn_push_quad(rect, g->atlas_bounding_box, color);
}