mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-04-15 07:10:58 +01:00
Fix input redirection
This commit is contained in:
parent
bd0938610f
commit
25ed5db324
@ -30,6 +30,8 @@ Item{
|
|||||||
property variant bloomSource: bloomSourceLoader.item
|
property variant bloomSource: bloomSourceLoader.item
|
||||||
property variant scanlineSource: scanlineSourceLoader.item
|
property variant scanlineSource: scanlineSourceLoader.item
|
||||||
|
|
||||||
|
property alias kterminal: kterminal
|
||||||
|
|
||||||
//The blur effect has to take into account the framerate
|
//The blur effect has to take into account the framerate
|
||||||
property real fpsAttenuation: 60 / shadersettings.fps
|
property real fpsAttenuation: 60 / shadersettings.fps
|
||||||
property real mBlur: shadersettings.motion_blur
|
property real mBlur: shadersettings.motion_blur
|
||||||
@ -161,10 +163,19 @@ Item{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function correctDistortion(x, y){
|
//Frame displacement properties
|
||||||
|
property real dtop: frame.item.displacementTop
|
||||||
|
property real dleft:frame.item.displacementLeft
|
||||||
|
property real dright: frame.item.displacementRight
|
||||||
|
property real dbottom: frame.item.displacementBottom
|
||||||
|
|
||||||
|
function correctDistortion(x, y){
|
||||||
x = x / width;
|
x = x / width;
|
||||||
y = y / height;
|
y = y / height;
|
||||||
|
|
||||||
|
x = (-dleft + x * (width + dleft + dright)) / width
|
||||||
|
y = (-dtop + y * (height + dtop + dbottom)) / height
|
||||||
|
|
||||||
var cc = Qt.size(0.5 - x, 0.5 - y);
|
var cc = Qt.size(0.5 - x, 0.5 - y);
|
||||||
var distortion = (cc.height * cc.height + cc.width * cc.width) * shadersettings.screen_distortion;
|
var distortion = (cc.height * cc.height + cc.width * cc.width) * shadersettings.screen_distortion;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<!-- Written by QtCreator 3.0.1, 2014-06-07T01:48:03. -->
|
<!-- Written by QtCreator 3.0.1, 2014-06-07T10:59:29. -->
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user