mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
core: fix invalid action call that wasn't setting our metrics properly
Fixes #2308
This commit is contained in:
@ -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 },
|
|
||||||
.cell_size,
|
|
||||||
.{
|
|
||||||
.width = font_grid.metrics.cell_width,
|
.width = font_grid.metrics.cell_width,
|
||||||
.height = font_grid.metrics.cell_height,
|
.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.
|
||||||
|
Reference in New Issue
Block a user