mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-12 12:55:28 +00:00
oops, byte offset
svn path=/trunk/gtk-sharp/; revision=54246
This commit is contained in:
parent
38f2b2a114
commit
9dfa8627c9
|
@ -64,7 +64,7 @@ namespace Gdk {
|
||||||
IntPtr data_ptr = gtksharp_gdk_event_client_get_data (Handle);
|
IntPtr data_ptr = gtksharp_gdk_event_client_get_data (Handle);
|
||||||
long[] l = new long [5];
|
long[] l = new long [5];
|
||||||
for (int i = 0; i < 5; i++)
|
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;
|
return l;
|
||||||
default:
|
default:
|
||||||
throw new Exception ("Invalid Data Format: " + DataFormat);
|
throw new Exception ("Invalid Data Format: " + DataFormat);
|
||||||
|
|
Loading…
Reference in a new issue