1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-31 02:01:19 +00:00

Fix: texture quality and burnin sliders now have effect on image quality when low res fornts are used.

This commit is contained in:
Filippo Scognamiglio 2015-01-02 12:09:25 +01:00
parent cc1d77ea32
commit c6716e1b1a

View File

@ -121,7 +121,7 @@ Item{
terminalContainer.fontWidth = fontWidth;
terminalContainer.screenScaling = screenScaling;
scaleTexture = Math.max(1.0, Math.round(screenScaling / 2));
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