comparison dw.h @ 1253:28c2c7e6671c

On GTK2 save the original pixbuf that is loaded so we can use it to store the alpha channel for use later when doing stretched bitblts... only negative is when drawing to pixmaps it won't modify the alpha mask.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 24 Oct 2011 05:21:29 +0000
parents c191a562c14a
children 61d0c5f84644
comparison
equal deleted inserted replaced
1252:575663435272 1253:28c2c7e6671c
1258 1258
1259 typedef struct _hpixmap { 1259 typedef struct _hpixmap {
1260 unsigned long width, height; 1260 unsigned long width, height;
1261 HWND handle; 1261 HWND handle;
1262 char *font; 1262 char *font;
1263 #if GTK_MAJOR_VERSION > 1
1264 GdkPixbuf *pixbuf; /* the actual image */
1265 #endif
1263 #if GTK_MAJOR_VERSION > 2 1266 #if GTK_MAJOR_VERSION > 2
1264 GdkPixbuf *pixbuf; /* the actual image */
1265 cairo_surface_t *image; /* Going to have dual storage for now */ 1267 cairo_surface_t *image; /* Going to have dual storage for now */
1266 #else 1268 #else
1267 GdkPixmap *pixmap; /* the actual image */ 1269 GdkPixmap *pixmap; /* the actual image */
1268 GdkBitmap *bitmap; /* if not null, the image mask representing the transparency mask */ 1270 GdkBitmap *bitmap; /* if not null, the image mask representing the transparency mask */
1269 void *image; /* Opaque handle to a cairo_surface_t for printing */ 1271 void *image; /* Opaque handle to a cairo_surface_t for printing */