mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-31 07:04:20 +00:00 
			
		
		
		
	Use qFloor instead of qRound to compute the number of columns of the terminal.
This commit is contained in:
		| @@ -1996,7 +1996,7 @@ void KTerminalDisplay::calcGeometry() | |||||||
|     _contentHeight = height() - 2 * DEFAULT_TOP_MARGIN + /* mysterious */ 1; |     _contentHeight = height() - 2 * DEFAULT_TOP_MARGIN + /* mysterious */ 1; | ||||||
|  |  | ||||||
|     // ensure that display is always at least one column wide |     // ensure that display is always at least one column wide | ||||||
|     _columns     = qMax(1, qRound(_contentWidth / _fontWidth)); |     _columns     = qMax(1, qFloor(_contentWidth / _fontWidth)); | ||||||
|     _usedColumns = qMin(_usedColumns,_columns); |     _usedColumns = qMin(_usedColumns,_columns); | ||||||
|  |  | ||||||
|     // ensure that display is always at least one line high |     // ensure that display is always at least one line high | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user