From c6716e1b1a5ed125ec21cc1c3f500462eb82c2a8 Mon Sep 17 00:00:00 2001 From: Filippo Scognamiglio Date: Fri, 2 Jan 2015 12:09:25 +0100 Subject: [PATCH] Fix: texture quality and burnin sliders now have effect on image quality when low res fornts are used. --- app/qml/PreprocessedTerminal.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/qml/PreprocessedTerminal.qml b/app/qml/PreprocessedTerminal.qml index bf5aa2a..1e9db23 100644 --- a/app/qml/PreprocessedTerminal.qml +++ b/app/qml/PreprocessedTerminal.qml @@ -120,8 +120,8 @@ Item{ font.family = fontLoader.name; terminalContainer.fontWidth = fontWidth; - terminalContainer.screenScaling= screenScaling; - scaleTexture = Math.max(1.0, Math.round(screenScaling / 2)); + terminalContainer.screenScaling = screenScaling; + scaleTexture = Math.max(1.0, Math.floor(screenScaling * appSettings.windowScaling)); kterminal.lineSpacing = lineSpacing; } @@ -237,8 +237,6 @@ Item{ visible: false - smooth: !appSettings.lowResolutionFont - function restartBlurSource(){ livetimer.restart(); } @@ -273,11 +271,13 @@ Item{ Loader{ id: blurredTerminalLoader + property int burnInScaling: scaleTexture * appSettings.burnInQuality + width: appSettings.lowResolutionFont - ? kterminal.width + ? kterminal.width * Math.max(1, burnInScaling) : kterminal.width * scaleTexture * appSettings.burnInQuality height: appSettings.lowResolutionFont - ? kterminal.height + ? kterminal.height * Math.max(1, burnInScaling) : kterminal.height * scaleTexture * appSettings.burnInQuality active: mBlur !== 0