aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-04-22 09:33:28 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-04-22 09:33:28 +0300
commit13887d7b53fec7e2d357fd377a6a1fbd0e875e65 (patch)
treef400c960cc086a6615de95d155b5da19044e37b6 /Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
parent26ede873b194b0df70979b6f1b62e0c91ca19341 (diff)
downloadTango-13887d7b53fec7e2d357fd377a6a1fbd0e875e65.tar.gz
Tango-13887d7b53fec7e2d357fd377a6a1fbd0e875e65.zip
Working on PPC optimizations...
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
index 364ca8ee7..b90a1afff 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
@@ -11,7 +11,9 @@ using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms;
using System.Windows.Input;
+using System.Windows.Interop;
using System.Windows.Media;
+using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
@@ -32,6 +34,8 @@ namespace Tango.PPC.UI
{
Instance = this;
+ //Timeline.DesiredFrameRateProperty.OverrideMetadata(typeof(Timeline),new FrameworkPropertyMetadata { DefaultValue = 30 });
+
InitializeComponent();
bool has_touch = false;
@@ -77,6 +81,16 @@ namespace Tango.PPC.UI
Closing += MainWindow_Closing;
}
+ protected override void OnSourceInitialized(EventArgs e)
+ {
+ //var hwndSource = PresentationSource.FromVisual(this) as HwndSource;
+
+ //if (hwndSource != null)
+ // hwndSource.CompositionTarget.RenderMode = RenderMode.SoftwareOnly;
+
+ base.OnSourceInitialized(e);
+ }
+
private void LockAspectRatio()
{
this.Width = (this.Height * (800d / 1280d)) - 10;