Fix build break on Net45
authorjh5.cho <jh5.cho@samsung.com>
Mon, 10 Oct 2016 05:56:04 +0000 (14:56 +0900)
committerjh5.cho <jh5.cho@samsung.com>
Mon, 10 Oct 2016 05:56:04 +0000 (14:56 +0900)
Change-Id: I45aaf179cda1042967d396dece7448b6d7fa3f92

src/ElmSharp/ElmSharp/GestureLayer.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 24d3944..6318a46
@@ -352,20 +352,20 @@ namespace ElmSharp
                 case GestureType.LongTap:
                 case GestureType.DoubleTap:
                 case GestureType.TripleTap:
-                    action(Marshal.PtrToStructure<TapData>(event_info));
+                    action(Marshal.PtrToStructure(event_info, typeof(TapData)));
                     break;
                 case GestureType.Momentum:
-                    action(Marshal.PtrToStructure<MomentumData>(event_info));
+                    action(Marshal.PtrToStructure(event_info, typeof(MomentumData)));
                     break;
                 case GestureType.Line:
                 case GestureType.Flick:
-                    action(Marshal.PtrToStructure<LineData>(event_info));
+                    action(Marshal.PtrToStructure(event_info, typeof(LineData)));
                     break;
                 case GestureType.Zoom:
-                    action(Marshal.PtrToStructure<ZoomData>(event_info));
+                    action(Marshal.PtrToStructure(event_info, typeof(ZoomData)));
                     break;
                 case GestureType.Rotate:
-                    action(Marshal.PtrToStructure<RotateData>(event_info));
+                    action(Marshal.PtrToStructure(event_info, typeof(RotateData)));
                     break;
             }
         }