Mercurial > dwindows
comparison gtk3/dw.c @ 1177:c38ec904b6d3
Fixed dw_pixmap_bitblt() on printing context pixmaps in GTK3.
Implemented dw_pixmap_bitblt() for cairo surfaces in GTK2.
Which also fixes bitblt for priting on GTK2 as well.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 19 Sep 2011 21:09:58 +0000 |
parents | e4b13cd7a002 |
children | 415c25f87d57 |
comparison
equal
deleted
inserted
replaced
1176:408ea33b19cf | 1177:c38ec904b6d3 |
---|---|
7221 * the code here a bit. -Brian | 7221 * the code here a bit. -Brian |
7222 */ | 7222 */ |
7223 int _locked_by_me = FALSE; | 7223 int _locked_by_me = FALSE; |
7224 cairo_t *cr = NULL; | 7224 cairo_t *cr = NULL; |
7225 | 7225 |
7226 if((!dest && (!destp || !destp->pixbuf)) || (!src && (!srcp || !srcp->pixbuf))) | 7226 if((!dest && (!destp || !destp->image)) || (!src && (!srcp || !srcp->image))) |
7227 return; | 7227 return; |
7228 | 7228 |
7229 DW_MUTEX_LOCK; | 7229 DW_MUTEX_LOCK; |
7230 if(dest) | 7230 if(dest) |
7231 { | 7231 { |