mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-10-31 23:22:17 +00:00
Fix: update terminal image on resize and font change.
This commit is contained in:
@@ -93,6 +93,9 @@ Item{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onWidthChanged: update();
|
||||||
|
onHeightChanged: update();
|
||||||
|
|
||||||
FontLoader{ id: fontLoader }
|
FontLoader{ id: fontLoader }
|
||||||
Text{id: fontMetrics; text: "B"; visible: false}
|
Text{id: fontMetrics; text: "B"; visible: false}
|
||||||
|
|
||||||
@@ -105,6 +108,7 @@ Item{
|
|||||||
height = Qt.binding(function() {return Math.floor(terminalContainer.height / screenScaling);});
|
height = Qt.binding(function() {return Math.floor(terminalContainer.height / screenScaling);});
|
||||||
|
|
||||||
setLineSpacing(lineSpacing);
|
setLineSpacing(lineSpacing);
|
||||||
|
update();
|
||||||
restartBlurredSource();
|
restartBlurredSource();
|
||||||
}
|
}
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
|||||||
Reference in New Issue
Block a user