mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-03-01 01:16:58 +00:00
2004-05-18 Vladimir Vukicevic <vladimir@pobox.com
* gnome/Print.custom: Cast .Pixels usage to a (byte *) svn path=/trunk/gtk-sharp/; revision=27619
This commit is contained in:
parent
518ce8f85b
commit
43a82f1204
|
@ -1,3 +1,7 @@
|
||||||
|
2004-05-18 Vladimir Vukicevic <vladimir@pobox.com
|
||||||
|
|
||||||
|
* gnome/Print.custom: Cast .Pixels usage to a (byte *)
|
||||||
|
|
||||||
2004-05-17 Vladimir Vukicevic <vladimir@pobox.com>
|
2004-05-17 Vladimir Vukicevic <vladimir@pobox.com>
|
||||||
|
|
||||||
* gdk/Pixbuf.custom: Changed Pixbuf.Pixels to return an IntPtr instead
|
* gdk/Pixbuf.custom: Changed Pixbuf.Pixels to return an IntPtr instead
|
||||||
|
|
|
@ -16,10 +16,12 @@
|
||||||
public static int Pixbuf (Gnome.PrintContext pc, Gdk.Pixbuf image) {
|
public static int Pixbuf (Gnome.PrintContext pc, Gdk.Pixbuf image) {
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (image.NChannels == 4)
|
unsafe {
|
||||||
ret = gnome_print_rgbaimage(pc.Handle, image.Pixels, image.Width, image.Height, image.Rowstride);
|
if (image.NChannels == 4)
|
||||||
else
|
ret = gnome_print_rgbaimage(pc.Handle, (byte *) image.Pixels, image.Width, image.Height, image.Rowstride);
|
||||||
ret = gnome_print_rgbimage(pc.Handle, image.Pixels, image.Width, image.Height, image.Rowstride);
|
else
|
||||||
|
ret = gnome_print_rgbimage(pc.Handle, (byte *) image.Pixels, image.Width, image.Height, image.Rowstride);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue