aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Slider.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2017-05-27 18:35:01 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2017-05-27 18:35:01 +0200
commit4d1f3264dc4b4ddc211164712e0d2d654a913bb7 (patch)
tree30655ea8f740eaf115a06c2ebfaaad29a7bcb39e /src/GraphicObjects/Slider.cs
parent8d385b053423c16e18d02467bdd54be17c3b42aa (diff)
c native GraphicObject implementation, work in progressTestKMS
Diffstat (limited to 'src/GraphicObjects/Slider.cs')
-rw-r--r--src/GraphicObjects/Slider.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GraphicObjects/Slider.cs b/src/GraphicObjects/Slider.cs
index 36f7e731..fd451c98 100644
--- a/src/GraphicObjects/Slider.cs
+++ b/src/GraphicObjects/Slider.cs
@@ -178,11 +178,11 @@ namespace Crow
}
#region mouse handling
- public override void onMouseDown (object sender, MouseButtonEventArgs e)
+ unsafe public override void onMouseDown (object sender, MouseButtonEventArgs e)
{
base.onMouseDown (sender, e);
- Rectangle cursInScreenCoord = ScreenCoordinates (cursor + Slot.Position);
+ Rectangle cursInScreenCoord = ScreenCoordinates (cursor + nativeHnd->Slot.Position);
if (cursInScreenCoord.ContainsOrIsEqual (e.Position))
holdCursor = true;
else if (_orientation == Orientation.Horizontal) {