core: fix invalid action call that wasn't setting our metrics properly

Fixes #2308
This commit is contained in:
Mitchell Hashimoto
2024-09-27 12:27:55 -07:00
parent 7befb5a418
commit f6f91b5eb5

View File

@ -1257,14 +1257,10 @@ pub fn setFontSize(self: *Surface, size: font.face.DesiredSize) !void {
errdefer self.app.font_grid_set.deref(font_grid_key); errdefer self.app.font_grid_set.deref(font_grid_key);
// Set our cell size // Set our cell size
try self.rt_app.performAction( try self.setCellSize(.{
.{ .surface = self }, .width = font_grid.metrics.cell_width,
.cell_size, .height = font_grid.metrics.cell_height,
.{ });
.width = font_grid.metrics.cell_width,
.height = font_grid.metrics.cell_height,
},
);
// Notify our render thread of the new font stack. The renderer // Notify our render thread of the new font stack. The renderer
// MUST accept the new font grid and deref the old. // MUST accept the new font grid and deref the old.