--- rxvt-unicode/src/background.h 2007/10/31 09:55:23 1.5 +++ rxvt-unicode/src/background.h 2007/11/19 15:33:34 1.10 @@ -13,9 +13,10 @@ #if defined(BG_IMAGE_FROM_FILE) || defined(ENABLE_TRANSPARENCY) # define HAVE_BG_PIXMAP 1/* to simplify further usage */ -struct bgPixmap_t { - - bgPixmap_t(); +struct bgPixmap_t +{ + bgPixmap_t (); + void destroy (); enum { geometrySet = (1UL<<0), @@ -54,7 +55,10 @@ bool render_asim (ASImage *background, ARGB32 background_tint); # endif - enum { defaultScale = 100, defaultAlign = 50 }; + enum { + noScale = 0, windowScale = 100, defaultScale = windowScale, + centerAlign = 50, defaultAlign = centerAlign, + rootAlign = -10000 }; unsigned int h_scale, v_scale;/* percents of the window size */ int h_align, v_align; /* percents of the window size: @@ -97,9 +101,7 @@ unsigned int pmap_depth; bool window_size_sensitive (); - bool window_position_sensitive () { - return (flags & isTransparent); - }; + bool window_position_sensitive (); bool is_parentOrigin () { return !(flags & isVtOrigin); @@ -112,7 +114,7 @@ if (!(flags & isInvalid)) { flags |= isInvalid; - invalid_since = NOW; + invalid_since = ev::now (); } }; }; @@ -122,4 +124,4 @@ -#endif /* _BACKGROUND_H_ */ +#endif /* _BACKGROUND_H_ */