mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-16 11:34:47 +02:00
2005-02-28 Mike Kestner <mkestner@novell.com>
* gdk/Region.custom : 64 bit fix for ptr arithmetic. [Fixes #77658] svn path=/trunk/gtk-sharp/; revision=57397
This commit is contained in:
parent
3e6a941186
commit
b2e4fc3fa8
@ -1,3 +1,6 @@
|
|||||||
|
2005-02-28 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* gdk/Region.custom : 64 bit fix for ptr arithmetic. [Fixes #77658]
|
||||||
|
|
||||||
Tue Feb 28 09:44:23 CET 2006 Paolo Molaro <lupus@ximian.com>
|
Tue Feb 28 09:44:23 CET 2006 Paolo Molaro <lupus@ximian.com>
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ public Rectangle[] GetRectangles ()
|
|||||||
|
|
||||||
Rectangle[] ret = new Rectangle[n];
|
Rectangle[] ret = new Rectangle[n];
|
||||||
int step = Marshal.SizeOf(typeof(Rectangle));
|
int step = Marshal.SizeOf(typeof(Rectangle));
|
||||||
int ptr = (int)rectangles;
|
long ptr = (long)rectangles;
|
||||||
for (int i = 0; i < n; i++) {
|
for (int i = 0; i < n; i++) {
|
||||||
ret[i] = (Rectangle)Marshal.PtrToStructure((IntPtr)ptr, typeof(Rectangle));
|
ret[i] = (Rectangle)Marshal.PtrToStructure((IntPtr)ptr, typeof(Rectangle));
|
||||||
ptr += step;
|
ptr += step;
|
||||||
|
Loading…
Reference in New Issue
Block a user