Skip to content

Commit

Permalink
fix macos
Browse files Browse the repository at this point in the history
  • Loading branch information
DanWBR committed Aug 25, 2023
1 parent 1285409 commit b12aed2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@
<Compile Include="ThemeVS2012Light\VS2012LightDockWindow.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="ThemeVS2012Light\VS2012LightSplitterControl.cs" />
<Compile Include="ThemeVS2012Light\VS2012LightSplitterControl.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="ThemeVS2012Light\VS2012LightTheme.cs">
<SubType>Component</SubType>
</Compile>
Expand Down
7 changes: 1 addition & 6 deletions DWSIM.UI.Desktop.Mac/SkiaSharp/CanvasControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ protected override void Initialize()
catch { }
}
}
Widget.FlowsheetObject.RegisterSnapshot(Interfaces.Enums.SnapshotType.ObjectLayout);
var scale = (float)GlobalSettings.Settings.DpiScale;
nativecontrol._lastTouchX = e.Location.X * scale;
nativecontrol._lastTouchY = e.Location.Y * scale;
Expand Down Expand Up @@ -200,12 +201,6 @@ public override void DrawRect(CGRect dirtyRect)

}

public override void MouseDown(NSEvent theEvent)
{
base.MouseDown(theEvent);
fbase.RegisterSnapshot(Interfaces.Enums.SnapshotType.ObjectLayout);
}

public override void MouseMoved(NSEvent theEvent)
{
try
Expand Down
7 changes: 1 addition & 6 deletions DWSIM.UI.Desktop.Mac/SkiaSharp/CanvasControl_OpenGL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ protected override void Initialize()
catch { }
}
}
Widget.FlowsheetObject.RegisterSnapshot(Interfaces.Enums.SnapshotType.ObjectLayout);
var scale = (float)GlobalSettings.Settings.DpiScale;
nativecontrol._lastTouchX = e.Location.X * scale;
nativecontrol._lastTouchY = e.Location.Y * scale;
Expand Down Expand Up @@ -212,12 +213,6 @@ public override void DrawRect(CGRect dirtyRect)
OpenGLContext.FlushBuffer();
}

public override void MouseDown(NSEvent theEvent)
{
base.MouseDown(theEvent);
fbase.RegisterSnapshot(Interfaces.Enums.SnapshotType.ObjectLayout);
}

public override void MouseMoved(NSEvent theEvent)
{
try
Expand Down

0 comments on commit b12aed2

Please sign in to comment.