gtk+ r22591 - branches/gtk-2-14/gdk-pixbuf
- From: hans svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22591 - branches/gtk-2-14/gdk-pixbuf
- Date: Fri, 27 Mar 2009 13:33:10 +0000 (UTC)
Author: hans
Date: Fri Mar 27 13:33:09 2009
New Revision: 22591
URL: http://svn.gnome.org/viewvc/gtk+?rev=22591&view=rev
Log:
2009-03-27 Hans Breuer <hans breuer org>
* io-gdip-utils.c(gdip_buffer_to_bitmap) : don't try to set the stream
size before stream creation - makes the gdip backend good enough to
serve gdk-pixbuf-csource.
Modified:
branches/gtk-2-14/gdk-pixbuf/ChangeLog
branches/gtk-2-14/gdk-pixbuf/io-gdip-utils.c
Modified: branches/gtk-2-14/gdk-pixbuf/io-gdip-utils.c
==============================================================================
--- branches/gtk-2-14/gdk-pixbuf/io-gdip-utils.c (original)
+++ branches/gtk-2-14/gdk-pixbuf/io-gdip-utils.c Fri Mar 27 13:33:09 2009
@@ -353,7 +353,6 @@
if (!hg)
return NULL;
- IStream_SetSize (stream, *(ULARGE_INTEGER *)&size64);
hr = CreateStreamOnHGlobal (hg, FALSE, (LPSTREAM *)&stream);
if (!SUCCEEDED (hr)) {
@@ -361,7 +360,7 @@
GlobalFree (hg);
return NULL;
}
-
+ IStream_SetSize (stream, *(ULARGE_INTEGER *)&size64);
status = GdipCreateBitmapFromStream (stream, &bitmap);
if (Ok != status)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]