oops forgot to actually enable maximization

This commit is contained in:
Adam D. Ruppe 2021-03-12 21:40:01 -05:00
parent d20fcbf0c8
commit aa5d0bfb54
1 changed files with 8 additions and 2 deletions

View File

@ -7539,7 +7539,12 @@ version(TerminalDirectToEmulator) {
smw = new ScrollMessageWidget(this);
tew = new TerminalEmulatorWidget(term, smw);
win.resize(integratedTerminalEmulatorConfiguration.initialWidth * tew.terminalEmulator.fontWidth, integratedTerminalEmulatorConfiguration.initialHeight * tew.terminalEmulator.fontHeight);
if(integratedTerminalEmulatorConfiguration.initialWidth == 0 || integratedTerminalEmulatorConfiguration.initialHeight == 0) {
win.show(); // if must be mapped before maximized... it does cause a flash but meh.
win.maximize();
} else {
win.resize(integratedTerminalEmulatorConfiguration.initialWidth * tew.terminalEmulator.fontWidth, integratedTerminalEmulatorConfiguration.initialHeight * tew.terminalEmulator.fontHeight);
}
smw.addEventListener("scroll", () {
tew.terminalEmulator.scrollbackTo(smw.position.x, smw.position.y + tew.terminalEmulator.height);
@ -8096,7 +8101,8 @@ version(TerminalDirectToEmulator) {
if(this.font is null || this.font.isNull)
loadDefaultFont(integratedTerminalEmulatorConfiguration.fontSize);
super(integratedTerminalEmulatorConfiguration.initialWidth, integratedTerminalEmulatorConfiguration.initialHeight);
super(integratedTerminalEmulatorConfiguration.initialWidth ? integratedTerminalEmulatorConfiguration.initialWidth : 80,
integratedTerminalEmulatorConfiguration.initialHeight ? integratedTerminalEmulatorConfiguration.initialHeight : 30);
defaultForeground = integratedTerminalEmulatorConfiguration.defaultForeground;
defaultBackground = integratedTerminalEmulatorConfiguration.defaultBackground;