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

Comparing rxvt-unicode/src/background.C (file contents):
Revision 1.1 by sasha, Wed Sep 12 20:29:24 2007 UTC vs.
Revision 1.2 by sasha, Wed Sep 12 21:06:08 2007 UTC

87 * scale Scale both up and down 87 * scale Scale both up and down
88 * auto Same as 100x100+50+50 88 * auto Same as 100x100+50+50
89 */ 89 */
90 90
91#ifdef HAVE_BG_PIXMAP 91#ifdef HAVE_BG_PIXMAP
92bgPixmap_t::bgPixmap_t()
93{
94#ifdef HAVE_AFTERIMAGE
95 original_asim = NULL;
96#endif
97#ifdef BG_IMAGE_FROM_FILE
98 h_scale = v_scale = 0;
99 h_align = v_align = 0;
100#endif
101 flags = 0;
102 pixmap = None;
103}
104
105
92bool 106bool
93bgPixmap_t::window_size_sensitive () 107bgPixmap_t::window_size_sensitive ()
94{ 108{
95# ifdef XPM_BACKGROUND 109# ifdef BG_IMAGE_FROM_FILE
96# ifdef HAVE_AFTERIMAGE 110# ifdef HAVE_AFTERIMAGE
97 if (original_asim != NULL) 111 if (original_asim != NULL)
98# endif 112# endif
99 { 113 {
100 if (h_scale != 0 || v_scale != 0 114 if (h_scale != 0 || v_scale != 0
124 } 138 }
125# endif 139# endif
126 return false; 140 return false;
127} 141}
128 142
129# ifdef XPM_BACKGROUND 143# ifdef BG_IMAGE_FROM_FILE
130static inline bool 144static inline bool
131check_set_scale_value (int geom_flags, int flag, unsigned int &scale, unsigned int new_value) 145check_set_scale_value (int geom_flags, int flag, unsigned int &scale, unsigned int new_value)
132{ 146{
133 if (geom_flags & flag) 147 if (geom_flags & flag)
134 { 148 {
602# endif 616# endif
603 } 617 }
604 return false; 618 return false;
605} 619}
606 620
607# endif /* XPM_BACKGROUND */ 621# endif /* BG_IMAGE_FROM_FILE */
608 622
609# ifdef ENABLE_TRANSPARENCY 623# ifdef ENABLE_TRANSPARENCY
610bool 624bool
611bgPixmap_t::set_transparent () 625bgPixmap_t::set_transparent ()
612{ 626{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines