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.4 by sasha, Fri Oct 26 17:26:16 2007 UTC vs.
Revision 1.7 by sasha, Wed Nov 14 22:25:41 2007 UTC

14#if defined(BG_IMAGE_FROM_FILE) || defined(ENABLE_TRANSPARENCY) 14#if defined(BG_IMAGE_FROM_FILE) || defined(ENABLE_TRANSPARENCY)
15# define HAVE_BG_PIXMAP 1/* to simplify further usage */ 15# define HAVE_BG_PIXMAP 1/* to simplify further usage */
16struct bgPixmap_t { 16struct bgPixmap_t {
17 17
18 bgPixmap_t(); 18 bgPixmap_t();
19 ~bgPixmap_t();
19 20
20 enum { 21 enum {
21 geometrySet = (1UL<<0), 22 geometrySet = (1UL<<0),
22 propScale = (1UL<<1), 23 propScale = (1UL<<1),
23 geometryFlags = (geometrySet|propScale), 24 geometryFlags = (geometrySet|propScale),
45 transpPmapBlured = blurNeeded, 46 transpPmapBlured = blurNeeded,
46 transpTransformations = (tintNeeded|blurNeeded) 47 transpTransformations = (tintNeeded|blurNeeded)
47 }; /* this flags are returned by make_transparency_pixmap if called */ 48 }; /* this flags are returned by make_transparency_pixmap if called */
48 49
49 bool check_clearChanged () { bool r = flags & hasChanged; flags &= ~hasChanged; return r; }; 50 bool check_clearChanged () { bool r = flags & hasChanged; flags &= ~hasChanged; return r; };
50 51
51# ifdef BG_IMAGE_FROM_FILE 52# ifdef BG_IMAGE_FROM_FILE
52# ifdef HAVE_AFTERIMAGE 53# ifdef HAVE_AFTERIMAGE
53 ASImage *original_asim; 54 ASImage *original_asim;
54 bool render_asim (ASImage *background, ARGB32 background_tint); 55 bool render_asim (ASImage *background, ARGB32 background_tint);
55# endif 56# endif
108 bool need_client_side_rendering (); 109 bool need_client_side_rendering ();
109 void apply (); 110 void apply ();
110 bool render (); 111 bool render ();
111 void invalidate () { 112 void invalidate () {
112 if (!(flags & isInvalid)) 113 if (!(flags & isInvalid))
113 { 114 {
114 flags |= isInvalid; 115 flags |= isInvalid;
115 invalid_since = NOW; 116 invalid_since = ev::now ();
116 } 117 }
117 }; 118 };
118}; 119};
119#else 120#else
120# undef HAVE_BG_PIXMAP 121# undef HAVE_BG_PIXMAP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines