inspector: fix display for fractional pixel sizes (#8179)

pull/8180/head
Leah Amelia Chen 2025-08-08 17:12:43 +08:00 committed by GitHub
commit 4d9d133ebc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ fn renderSizeWindow(self: *Inspector) void {
{ {
_ = cimgui.c.igTableSetColumnIndex(1); _ = cimgui.c.igTableSetColumnIndex(1);
cimgui.c.igText( cimgui.c.igText(
"%d px", "%.2f px",
self.surface.font_size.pixels(), self.surface.font_size.pixels(),
); );
} }