ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/background.h
(Generate patch)

Comparing rxvt-unicode/src/background.h (file contents):
Revision 1.19 by sf-exg, Tue Aug 31 15:14:06 2010 UTC vs.
Revision 1.22 by sf-exg, Sun Oct 3 20:48:34 2010 UTC

7 7
8#ifdef HAVE_AFTERIMAGE 8#ifdef HAVE_AFTERIMAGE
9# include <afterimage.h> 9# include <afterimage.h>
10# undef min 10# undef min
11# undef max 11# undef max
12#endif
13
14#ifdef HAVE_PIXBUF
15#include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
12#endif 16#endif
13 17
14#if defined(BG_IMAGE_FROM_FILE) || defined(ENABLE_TRANSPARENCY) 18#if defined(BG_IMAGE_FROM_FILE) || defined(ENABLE_TRANSPARENCY)
15# define HAVE_BG_PIXMAP 1 /* to simplify further usage */ 19# define HAVE_BG_PIXMAP 1 /* to simplify further usage */
16struct bgPixmap_t 20struct bgPixmap_t
35 isTransparent = 1 << 16, 39 isTransparent = 1 << 16,
36 isInvalid = 1 << 17, 40 isInvalid = 1 << 17,
37 isVtOrigin = 1 << 18, /* if set pixmap has origin at corner of 41 isVtOrigin = 1 << 18, /* if set pixmap has origin at corner of
38 vt window instead of parent[0]! */ 42 vt window instead of parent[0]! */
39 hasChanged = 1 << 19, 43 hasChanged = 1 << 19,
44 sizeSensitive = 1 << 20,
40 }; 45 };
41 46
42 unsigned int flags; 47 unsigned int flags;
43 48
44 enum { 49 enum {
58# ifdef BG_IMAGE_FROM_FILE 63# ifdef BG_IMAGE_FROM_FILE
59# ifdef HAVE_AFTERIMAGE 64# ifdef HAVE_AFTERIMAGE
60 ASImage *original_asim; 65 ASImage *original_asim;
61# endif 66# endif
62 67
68# ifdef HAVE_PIXBUF
69 GdkPixbuf *pixbuf;
70# endif
71
72 void get_image_geometry (int image_width, int image_height, int &w, int &h, int &x, int &y);
63 bool render_image (unsigned long background_flags); 73 bool render_image (unsigned long background_flags);
64 bool have_image; 74 bool have_image;
65 75
66 enum { 76 enum {
67 noScale = 0, 77 noScale = 0,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines