don't try to set the stream size before stream creation - makes the gdip
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. svn path=/branches/gtk-2-14/; revision=22591
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
2009-01-19 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
Bug 568305 - gdk-pixbuf mishandles BI_BITFIELDS bmps
|
||||
|
||||
@@ -353,7 +353,6 @@ gdip_buffer_to_bitmap (const gchar *buffer, size_t size, GError **error)
|
||||
if (!hg)
|
||||
return NULL;
|
||||
|
||||
IStream_SetSize (stream, *(ULARGE_INTEGER *)&size64);
|
||||
hr = CreateStreamOnHGlobal (hg, FALSE, (LPSTREAM *)&stream);
|
||||
|
||||
if (!SUCCEEDED (hr)) {
|
||||
@@ -361,7 +360,7 @@ gdip_buffer_to_bitmap (const gchar *buffer, size_t size, GError **error)
|
||||
GlobalFree (hg);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
IStream_SetSize (stream, *(ULARGE_INTEGER *)&size64);
|
||||
status = GdipCreateBitmapFromStream (stream, &bitmap);
|
||||
|
||||
if (Ok != status)
|
||||
|
||||
Reference in New Issue
Block a user