correctly use tab width px in new code slice fstrs measuring path

This commit is contained in:
Ryan Fleury
2025-05-19 19:21:06 -07:00
parent 54325828b2
commit 9ae0ee9a46
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -187,10 +187,10 @@ dr_fruns_from_fstrs(Arena *arena, F32 tab_size_px, DR_FStrList *strs)
}
internal Vec2F32
dr_dim_from_fstrs(DR_FStrList *fstrs)
dr_dim_from_fstrs(F32 tab_size_px, DR_FStrList *fstrs)
{
Temp scratch = scratch_begin(0, 0);
DR_FRunList fruns = dr_fruns_from_fstrs(scratch.arena, 0, fstrs);
DR_FRunList fruns = dr_fruns_from_fstrs(scratch.arena, tab_size_px, fstrs);
Vec2F32 dim = fruns.dim;
scratch_end(scratch);
return dim;