From: Malcolm Still Date: Tue, 13 Jun 2017 21:19:50 +0000 (-0500) Subject: Remove Fixed24 struct X-Git-Tag: v3.0.0~100^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79bccee53548484c58315e185d22e4d8272f39c1;p=platform%2Fcore%2Fcsapi%2Fopentk.git Remove Fixed24 struct --- diff --git a/src/OpenTK/Platform/Linux/Bindings/LibInput.cs b/src/OpenTK/Platform/Linux/Bindings/LibInput.cs index d45f55d..2ca8da4 100644 --- a/src/OpenTK/Platform/Linux/Bindings/LibInput.cs +++ b/src/OpenTK/Platform/Linux/Bindings/LibInput.cs @@ -195,31 +195,6 @@ namespace OpenTK.Platform.Linux HorizontalScroll = 1 } - struct Fixed24 - { - internal readonly int Value; - - public static implicit operator double(Fixed24 n) - { - long l = ((1023L + 44L) << 52) + (1L << 51) + n.Value; - unsafe - { - double d = *(double*)&l; - return d - (3L << 43); - } - } - - public static implicit operator float(Fixed24 n) - { - return (float)(double)n; - } - - public static explicit operator int(Fixed24 n) - { - return n.Value >> 8; - } - } - [StructLayout(LayoutKind.Sequential)] class InputInterface {