From f6f91b5eb54711f5fc4656104c3e140bb9665664 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 27 Sep 2024 12:27:55 -0700 Subject: [PATCH] core: fix invalid action call that wasn't setting our metrics properly Fixes #2308 --- src/Surface.zig | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Surface.zig b/src/Surface.zig index 28d66d25d..298b7eabd 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -1257,14 +1257,10 @@ pub fn setFontSize(self: *Surface, size: font.face.DesiredSize) !void { errdefer self.app.font_grid_set.deref(font_grid_key); // Set our cell size - try self.rt_app.performAction( - .{ .surface = self }, - .cell_size, - .{ - .width = font_grid.metrics.cell_width, - .height = font_grid.metrics.cell_height, - }, - ); + try self.setCellSize(.{ + .width = font_grid.metrics.cell_width, + .height = font_grid.metrics.cell_height, + }); // Notify our render thread of the new font stack. The renderer // MUST accept the new font grid and deref the old.