mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-21 20:39:00 +00:00
Fix: last line was clipped when the size was not multiple of the fontsize.
This commit is contained in:
parent
67055633bd
commit
98daa802c3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user