1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-18 20:20:45 +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

@ -120,8 +120,8 @@ Item{
font.family = fontLoader.name; font.family = fontLoader.name;
terminalContainer.fontWidth = fontWidth; terminalContainer.fontWidth = fontWidth;
terminalContainer.screenScaling= screenScaling; 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; kterminal.lineSpacing = lineSpacing;
} }
@ -237,8 +237,6 @@ Item{
visible: false visible: false
smooth: !appSettings.lowResolutionFont
function restartBlurSource(){ function restartBlurSource(){
livetimer.restart(); livetimer.restart();
} }
@ -273,11 +271,13 @@ Item{
Loader{ Loader{
id: blurredTerminalLoader id: blurredTerminalLoader
property int burnInScaling: scaleTexture * appSettings.burnInQuality
width: appSettings.lowResolutionFont width: appSettings.lowResolutionFont
? kterminal.width ? kterminal.width * Math.max(1, burnInScaling)
: kterminal.width * scaleTexture * appSettings.burnInQuality : kterminal.width * scaleTexture * appSettings.burnInQuality
height: appSettings.lowResolutionFont height: appSettings.lowResolutionFont
? kterminal.height ? kterminal.height * Math.max(1, burnInScaling)
: kterminal.height * scaleTexture * appSettings.burnInQuality : kterminal.height * scaleTexture * appSettings.burnInQuality
active: mBlur !== 0 active: mBlur !== 0