diff options
author | Tor Lillqvist <tml@iki.fi> | 2003-06-28 01:12:51 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2003-06-28 01:12:51 +0000 |
commit | 323bcc614d46abc4eb4095664ee524a1ab25cfce (patch) | |
tree | 9b10aacdd96e75242c332b81ee5fef6568685b5a /gdk/win32/gdkpixmap-win32.h | |
parent | 8597f10089e2a7d44ec82cff5230aeef876e8fbc (diff) | |
download | gdk-pixbuf-323bcc614d46abc4eb4095664ee524a1ab25cfce.tar.gz |
Fix for #111028, thanks to J. Ali Harlow, who writes: I found that the
2003-06-28 Tor Lillqvist <tml@iki.fi>
Fix for #111028, thanks to J. Ali Harlow, who writes:
I found that the GdkPixmap->GdkImage reference really isn't
important. It's only really there to have somewhere convenient to
store the location of the pixel data in the pixmap and as an easy
way of accessing the dimensions of that data. I have therefore put
together a fix which removes this reference entirely which seems
to solve the problem.
* gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
Instead of a pointer to a GdkImage, keep a pointer to the pixels
directly.
* gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
(_gdk_win32_new_image): New function, replacing the above. Creates
a GdkImage without any associated GdkPixmap.
(gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
* gdk/win32/gdkprivate-win32.h: Remove from here, too.
* gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
* gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
* gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
* gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
Corresponding changes.
Diffstat (limited to 'gdk/win32/gdkpixmap-win32.h')
-rw-r--r-- | gdk/win32/gdkpixmap-win32.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdk/win32/gdkpixmap-win32.h b/gdk/win32/gdkpixmap-win32.h index 0b3589995..3e7e4f76c 100644 --- a/gdk/win32/gdkpixmap-win32.h +++ b/gdk/win32/gdkpixmap-win32.h @@ -53,10 +53,7 @@ struct _GdkPixmapImplWin32 gint width; gint height; - - GdkImage *image; /* A pointer to the GdkImage - * containing the pixels. - */ + guchar *bits; guint is_foreign : 1; }; |