mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
Merge pull request #1564 from qwerasd205/fix-render-alloc
fix(renderer): allocate enough room for fg cells
This commit is contained in:
@ -1552,9 +1552,9 @@ fn rebuildCells(
|
|||||||
try self.cells.ensureTotalCapacity(
|
try self.cells.ensureTotalCapacity(
|
||||||
self.alloc,
|
self.alloc,
|
||||||
|
|
||||||
// * 3 for background modes and cursor and underlines
|
// * 3 for glyph + underline + strikethrough for each cell
|
||||||
// + 1 for cursor
|
// + 1 for cursor
|
||||||
(screen.rows * screen.cols * 2) + 1,
|
(screen.rows * screen.cols * 3) + 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create an arena for all our temporary allocations while rebuilding
|
// Create an arena for all our temporary allocations while rebuilding
|
||||||
|
@ -973,9 +973,9 @@ pub fn rebuildCells(
|
|||||||
try self.cells.ensureTotalCapacity(
|
try self.cells.ensureTotalCapacity(
|
||||||
self.alloc,
|
self.alloc,
|
||||||
|
|
||||||
// * 3 for background modes and cursor and underlines
|
// * 3 for glyph + underline + strikethrough for each cell
|
||||||
// + 1 for cursor
|
// + 1 for cursor
|
||||||
(screen.rows * screen.cols * 2) + 1,
|
(screen.rows * screen.cols * 3) + 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create an arena for all our temporary allocations while rebuilding
|
// Create an arena for all our temporary allocations while rebuilding
|
||||||
|
Reference in New Issue
Block a user