Fix compilation after last change.
authorayin <ayin>
Fri, 3 Aug 2007 23:15:34 +0000 (23:15 +0000)
committerayin <ayin>
Fri, 3 Aug 2007 23:15:34 +0000 (23:15 +0000)
src/command.C
src/init.C

index ffcd53e32c1052633486b40160ccb75ee81e83d4..9d5f5262f658285d21e3a3082a2f87bf64d53fdb 100644 (file)
@@ -1486,7 +1486,7 @@ rxvt_term::x_cb (XEvent &ev)
               {
                 seen_resize = 1;
                 resize_all_windows (ev.xconfigure.width, ev.xconfigure.height, 1);
-#ifdef HAVE_BG_PIXMAP
+#ifdef XPM_BACKGROUND
                 /* TODO: replace with update_pixmap() that should unify transparency and bg image handling ! */
                 if (!option (Opt_transparent) && bgPixmap.window_size_sensitive ())
                   {
index cb93074d54dd18ec42b8dec0234404f79a1ec236..69c47ad919b9825cd43d71fdad7c9c5b9e37c46c 100644 (file)
@@ -206,8 +206,10 @@ rxvt_term::init_vars ()
   bgPixmap.original_asim = NULL;
 #endif
   /*  bgPixmap.w = bgPixmap.h = 0; */
+#ifdef XPM_BACKGROUND
   bgPixmap.h_scale = bgPixmap.v_scale = 0;
   bgPixmap.h_align = bgPixmap.v_align = 0;
+#endif
   bgPixmap.flags = 0;
   bgPixmap.pixmap = None;
 #endif