2005-02-28 Mike Kestner <mkestner@novell.com>

* pango/Context.custom : use ReadIntPtr (ptr, offset) for 64 bit.
	* pango/FontFamily.custom : use ReadIntPtr (ptr, offset) for 64 bit.
	* pango/FontMap.custom : use ReadIntPtr (ptr, offset) for 64 bit.
	* pango/Layout.custom : use ReadIntPtr (ptr, offset) for 64 bit.

svn path=/trunk/gtk-sharp/; revision=57399
This commit is contained in:
Mike Kestner 2006-02-28 16:29:57 +00:00
parent b2e4fc3fa8
commit 0ae0904afd
5 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2005-02-28 Mike Kestner <mkestner@novell.com>
* pango/Context.custom : use ReadIntPtr (ptr, offset) for 64 bit.
* pango/FontFamily.custom : use ReadIntPtr (ptr, offset) for 64 bit.
* pango/FontMap.custom : use ReadIntPtr (ptr, offset) for 64 bit.
* pango/Layout.custom : use ReadIntPtr (ptr, offset) for 64 bit.
2005-02-28 Mike Kestner <mkestner@novell.com>
* gdk/Region.custom : 64 bit fix for ptr arithmetic. [Fixes #77658]

View file

@ -35,7 +35,7 @@
return new FontFamily [0];
FontFamily [] result = new FontFamily [count];
for (int i = 0; i < count; i++) {
IntPtr fam_ptr = Marshal.ReadIntPtr (new IntPtr ((int)array_ptr + i * IntPtr.Size));
IntPtr fam_ptr = Marshal.ReadIntPtr (array_ptr, i * IntPtr.Size);
result [i] = GLib.Object.GetObject (fam_ptr) as FontFamily;
}

View file

@ -35,7 +35,7 @@
return new FontFace [0];
FontFace [] result = new FontFace [count];
for (int i = 0; i < count; i++) {
IntPtr fam_ptr = Marshal.ReadIntPtr (new IntPtr ((int)array_ptr + i * IntPtr.Size));
IntPtr fam_ptr = Marshal.ReadIntPtr (array_ptr, i * IntPtr.Size);
result [i] = GLib.Object.GetObject (fam_ptr) as FontFace;
}

View file

@ -35,7 +35,7 @@
return new FontFamily [0];
FontFamily [] result = new FontFamily [count];
for (int i = 0; i < count; i++) {
IntPtr fam_ptr = Marshal.ReadIntPtr (new IntPtr ((int)array_ptr + i * IntPtr.Size));
IntPtr fam_ptr = Marshal.ReadIntPtr (array_ptr, i * IntPtr.Size);
result [i] = GLib.Object.GetObject (fam_ptr) as FontFamily;
}

View file

@ -64,7 +64,7 @@ public void SetMarkupWithAccel (string markup, char accel_marker, out char accel
return new LogAttr [0];
LogAttr [] result = new LogAttr [count];
for (int i = 0; i < count; i++) {
IntPtr fam_ptr = Marshal.ReadIntPtr (new IntPtr ((int)array_ptr + i * IntPtr.Size));
IntPtr fam_ptr = Marshal.ReadIntPtr (array_ptr, i * IntPtr.Size);
result [i] = LogAttr.New (fam_ptr);
}