mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-31 07:04:20 +00:00 
			
		
		
		
	Use window scaling parameter for framebuffer size.
This commit is contained in:
		| @@ -155,7 +155,7 @@ QtObject{ | ||||
|         if (index === undefined) return; | ||||
|  | ||||
|         fontManager.item.selectedFontIndex = index; | ||||
|         fontManager.item.scaling = totalFontScaling * windowScaling; | ||||
|         fontManager.item.scaling = totalFontScaling; | ||||
|  | ||||
|         var fontSource = fontManager.item.source; | ||||
|         var pixelSize = fontManager.item.pixelSize; | ||||
|   | ||||
| @@ -338,7 +338,8 @@ ShaderEffect { | ||||
|      ShaderEffect { | ||||
|          id: frame | ||||
|  | ||||
|          anchors.fill: parent | ||||
|          width: parent.width * appSettings.windowScaling | ||||
|          height: parent.height * appSettings.windowScaling | ||||
|  | ||||
|          property ShaderEffectSource source: parent.source | ||||
|          property ShaderEffectSource bloomSource: parent.bloomSource | ||||
| @@ -494,8 +495,6 @@ ShaderEffect { | ||||
|  | ||||
|      ShaderEffectSource { | ||||
|          id: frameBuffer | ||||
|  | ||||
|          anchors.fill: parent | ||||
|          visible: false | ||||
|          sourceItem: frame | ||||
|          hideSource: true | ||||
|   | ||||
| @@ -36,7 +36,7 @@ ShaderTerminal { | ||||
|         height: parent.height * appSettings.bloomQuality | ||||
|  | ||||
|         sourceComponent: FastBlur{ | ||||
|             radius: Utils.lint(16, 64, appSettings.bloomQuality * appSettings.windowScaling); | ||||
|             radius: Utils.lint(16, 64, appSettings.bloomQuality); | ||||
|             source: terminal.mainSource | ||||
|             transparentBorder: true | ||||
|         } | ||||
|   | ||||
| @@ -137,13 +137,8 @@ ApplicationWindow{ | ||||
|     TerminalContainer{ | ||||
|         id: terminalContainer | ||||
|         y: appSettings.showMenubar ? 0 : -2 // Workaroud to hide the margin in the menubar. | ||||
|         width: parent.width * appSettings.windowScaling | ||||
|         height: (parent.height + Math.abs(y)) * appSettings.windowScaling | ||||
|  | ||||
|         transform: Scale { | ||||
|             xScale: 1 / appSettings.windowScaling | ||||
|             yScale: 1 / appSettings.windowScaling | ||||
|         } | ||||
|         width: parent.width | ||||
|         height: (parent.height + Math.abs(y)) | ||||
|     } | ||||
|     SettingsWindow{ | ||||
|         id: settingswindow | ||||
|   | ||||
		Reference in New Issue
	
	Block a user