(gnus-article-display-xface)
authorDave Love <fx@gnu.org>
Wed, 4 Oct 2000 16:12:17 +0000 (16:12 +0000)
committerDave Love <fx@gnu.org>
Wed, 4 Oct 2000 16:12:17 +0000 (16:12 +0000)
[gnus-article-compface-xbm]: Fix.

lisp/gnus-ems.el

index 36bf70b..365154c 100644 (file)
@@ -233,7 +233,8 @@ for XEmacs."
                              'delete '(t nil) nil
                              (if gnus-article-compface-xbm
                                  '("-X"))))
-                (unless gnus-article-compface-xbm
+                (if gnus-article-compface-xbm
+                    t
                   (goto-char (point-min))
                   (progn (insert "/* Width=48, Height=48 */\n") t)
                   (eq 0 (call-process-region (point-min) (point-max)
@@ -243,11 +244,19 @@ for XEmacs."
                 ;; light on dark.
                 (if (eq 'dark (cdr-safe (assq 'background-mode
                                               (frame-parameters))))
-                    (setq image (create-image (buffer-string) 'pbm t
+                    (setq image (create-image (buffer-string)
+                                              (if gnus-article-compface-xbm
+                                                  'xbm
+                                                'pbm)
+                                              t
                                               :ascent 'center
                                               :foreground "black"
                                               :background "white"))
-                  (setq image (create-image (buffer-string) 'pbm t
+                  (setq image (create-image (buffer-string)
+                                            (if gnus-article-compface-xbm
+                                                'xbm
+                                              'pbm)
+                                            t
                                             :ascent 'center)))))
          (ring-insert gnus-article-xface-ring-internal (cons data image)))
        (when image