mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fill pages to capacity
This commit is contained in:
@@ -117,13 +117,7 @@ export class TextureAtlas implements ITextureAtlas {
|
||||
}
|
||||
|
||||
public beginFrame(): boolean {
|
||||
const page = this._pages[this._pages.length - 1];
|
||||
// TODO: Revisit when a new page gets added, this is only really needed now when there is no
|
||||
// room for a new row
|
||||
if (page.currentRow.y > Math.floor(page.canvas.height * 0.8)) {
|
||||
this._createNewPage();
|
||||
return true;
|
||||
}
|
||||
// TODO: Something should happen to prevent reaching capacity
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user