1
0
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:
Filippo Scognamiglio 2014-03-24 23:51:58 +01:00
parent 67055633bd
commit 98daa802c3

View File

@ -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);
}