… | |
… | |
10 | # undef min |
10 | # undef min |
11 | # undef max |
11 | # undef max |
12 | #endif |
12 | #endif |
13 | |
13 | |
14 | #ifdef HAVE_PIXBUF |
14 | #ifdef HAVE_PIXBUF |
15 | #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h> |
15 | #include <gdk-pixbuf/gdk-pixbuf.h> |
16 | #endif |
16 | #endif |
17 | |
17 | |
18 | #if defined(BG_IMAGE_FROM_FILE) || defined(ENABLE_TRANSPARENCY) |
18 | #if defined(BG_IMAGE_FROM_FILE) || defined(ENABLE_TRANSPARENCY) |
19 | # define HAVE_BG_PIXMAP 1 /* to simplify further usage */ |
19 | # define HAVE_BG_PIXMAP 1 /* to simplify further usage */ |
20 | struct bgPixmap_t |
20 | struct bgPixmap_t |
… | |
… | |
57 | ASImage *original_asim; |
57 | ASImage *original_asim; |
58 | # endif |
58 | # endif |
59 | |
59 | |
60 | # ifdef HAVE_PIXBUF |
60 | # ifdef HAVE_PIXBUF |
61 | GdkPixbuf *pixbuf; |
61 | GdkPixbuf *pixbuf; |
|
|
62 | bool pixbuf_to_pixmap (GdkPixbuf *pixbuf, Pixmap pixmap, GC gc, |
|
|
63 | int src_x, int src_y, int dst_x, int dst_y, |
|
|
64 | unsigned int width, unsigned int height); |
62 | # endif |
65 | # endif |
63 | |
66 | |
64 | void get_image_geometry (int image_width, int image_height, int &w, int &h, int &x, int &y); |
67 | void get_image_geometry (int image_width, int image_height, int &w, int &h, int &x, int &y); |
65 | bool render_image (unsigned long background_flags); |
68 | bool render_image (unsigned long background_flags); |
66 | bool have_image; |
69 | bool have_image; |