core: font size changes work

This commit is contained in:
Mitchell Hashimoto
2024-04-06 19:33:49 -07:00
parent f51dad445f
commit 506ba854fa
6 changed files with 24 additions and 42 deletions

View File

@@ -321,13 +321,9 @@ fn drainMailbox(self: *Thread) !void {
}
},
.font_grid => |grid| if (self.renderer.setFontGrid(grid.grid)) {
// Success, deref our old grid
.font_grid => |grid| {
self.renderer.setFontGrid(grid.grid);
grid.set.deref(grid.old_key);
} else |err| {
// Error, deref our new grid since we didn't use it.
grid.set.deref(grid.new_key);
return err;
},
.foreground_color => |color| {