diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-03-28 19:05:42 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-03-28 19:05:42 +0200 |
| commit | e07ebe48156313899ab6f4a06928aac6ef818f0d (patch) | |
| tree | 83ba728e58ee242f60790fa9285c453fbaa3a06d /Software/Visual_Studio/SideChains | |
| parent | b62c4b8b67b3103c691564df80f65423a9c315a0 (diff) | |
| download | Tango-e07ebe48156313899ab6f4a06928aac6ef818f0d.tar.gz Tango-e07ebe48156313899ab6f4a06928aac6ef818f0d.zip | |
Working on real-time card detection...
Diffstat (limited to 'Software/Visual_Studio/SideChains')
| -rw-r--r-- | Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs | 2 | ||||
| -rw-r--r-- | Software/Visual_Studio/SideChains/RealTimeGraphX/GraphPainterBase.cs | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs index b9e425282..5057949f0 100644 --- a/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs +++ b/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/Surfaces/WpfGraphSurface.cs @@ -398,6 +398,8 @@ namespace RealTimeGraphX.WPF.Surfaces { Input.ConnectOutput(this, true); } + + OnSurfaceSizeChanged(_grid.ActualWidth, _grid.ActualHeight); } /// <summary> diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX/GraphPainterBase.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX/GraphPainterBase.cs index c9af5858d..12f6143fc 100644 --- a/Software/Visual_Studio/SideChains/RealTimeGraphX/GraphPainterBase.cs +++ b/Software/Visual_Studio/SideChains/RealTimeGraphX/GraphPainterBase.cs @@ -396,13 +396,13 @@ namespace RealTimeGraphX Output = surface; + Output.SurfaceSizeChanged += _surface_SurfaceSizeChanged; + if (!fromOutput) { Output.ConnectInput(this, true); } - Output.SurfaceSizeChanged += _surface_SurfaceSizeChanged; - _size_changed = true; } |
