Skip to content

Commit

Permalink
Fixed Tall Terminal Style
Browse files Browse the repository at this point in the history
Fixes #365
  • Loading branch information
BrockWS committed Mar 12, 2019
1 parent 9847dad commit 3d09e85
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ public void initGui() {
this.xSize = 197;
this.ySize = 190;

double remainingY = this.height - this.ySize;
int maxRows = (int) Math.floor(remainingY / 18);
if (ThEApi.instance().config().terminalStyle() != TerminalStyle.TALL) {
this.rows = 6;
this.rows = Math.min(maxRows, 6);
} else {
this.rows = 15;
this.rows = maxRows;
}

this.ySize += 18 * this.rows;
Expand Down

0 comments on commit 3d09e85

Please sign in to comment.