Simplify ifdef hell.
authorayin <ayin>
Fri, 3 Aug 2007 14:03:28 +0000 (14:03 +0000)
committerayin <ayin>
Fri, 3 Aug 2007 14:03:28 +0000 (14:03 +0000)
src/command.C

index 22629e9f2b033da56b48061e0e6b436fbe72fdea..20aea65fbd83c6351377925853373b3d557a717c 100644 (file)
@@ -3445,15 +3445,14 @@ rxvt_term::process_xterm_seq (int op, const char *str, char resp)
         break;
 #endif
 
+#if XPM_BACKGROUND
       case Rxvt_Pixmap:
         {
           if (*str != ';')
             {
-#if XPM_BACKGROUND
               scale_pixmap ("");       /* reset to default scaling */
               set_bgPixmap (str);      /* change pixmap */
               scr_touch (true);
-#endif
             }
 
           int changed = 0;
@@ -3461,17 +3460,13 @@ rxvt_term::process_xterm_seq (int op, const char *str, char resp)
           while ((str = strchr (str, ';')) != NULL)
             {
               str++;
-#if XPM_BACKGROUND
               changed += scale_pixmap (str);
-#endif
             }
 
           if (changed)
             {
-#ifdef XPM_BACKGROUND
               resize_pixmap ();
               scr_touch (true);
-#endif
             }
 #if ENABLE_TRANSPARENCY && defined(HAVE_AFTERIMAGE)
           if (option (Opt_transparent))
@@ -3479,6 +3474,7 @@ rxvt_term::process_xterm_seq (int op, const char *str, char resp)
 #endif
         }
         break;
+#endif
 
       case Rxvt_restoreFG:
         set_window_color (Color_fg, str);