Skip to content

Commit 5381ab8

Browse files
committed
Test macos pixel density test fix
1 parent 68a0057 commit 5381ab8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/engine.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3748,7 +3748,7 @@ test "text input sizing" {
37483748
try eq(214, l.type.label.elements.items[1].width);
37493749

37503750
// Dispalay width of the words when rendered to the physical display
3751-
try eq(187, @trunc(l.shrink_width(display, 500)));
3751+
try eq(93.5, l.shrink_width(display, 500) / display.pixel_scale);
37523752
try eq(default_font_size * display.pixel_scale, l.shrink_height(display, 500));
37533753
try eq(2 * default_font_size * display.pixel_scale, l.shrink_height(display, 115));
37543754
}

0 commit comments

Comments
 (0)