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
2 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ public Rectangle[] GetRectangles ()
|
|||
|
||||
Rectangle[] ret = new Rectangle[n];
|
||||
int step = Marshal.SizeOf(typeof(Rectangle));
|
||||
int ptr = (int)rectangles;
|
||||
long ptr = (long)rectangles;
|
||||
for (int i = 0; i < n; i++) {
|
||||
ret[i] = (Rectangle)Marshal.PtrToStructure((IntPtr)ptr, typeof(Rectangle));
|
||||
ptr += step;
|
||||
|
|
Loading…
Reference in a new issue