mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-09-24 22:22:41 +01:00
Fix: last line was clipped when the size was not multiple of the fontsize.
This commit is contained in:
@@ -1598,7 +1598,7 @@ void KTerminalDisplay::calcGeometry()
|
||||
_usedColumns = qMin(_usedColumns,_columns);
|
||||
|
||||
// ensure that display is always at least one line high
|
||||
_lines = qMax(1, qRound(_contentHeight / (double)_fontHeight));
|
||||
_lines = qMax(1, qFloor(_contentHeight / (double)_fontHeight));
|
||||
_usedLines = qMin(_usedLines,_lines);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user