From 9dfa8627c9869c568bea31a8a2ca22ddf9d2e9e0 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 12 Dec 2005 16:18:27 +0000 Subject: [PATCH] oops, byte offset svn path=/trunk/gtk-sharp/; revision=54246 --- gdk/EventClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/EventClient.cs b/gdk/EventClient.cs index c8efb5c62..76db671a2 100644 --- a/gdk/EventClient.cs +++ b/gdk/EventClient.cs @@ -64,7 +64,7 @@ namespace Gdk { IntPtr data_ptr = gtksharp_gdk_event_client_get_data (Handle); long[] l = new long [5]; for (int i = 0; i < 5; i++) - l [i] = (long) Marshal.ReadIntPtr (data_ptr, i); + l [i] = (long) Marshal.ReadIntPtr (data_ptr, i * IntPtr.Size); return l; default: throw new Exception ("Invalid Data Format: " + DataFormat);