summaryrefslogtreecommitdiff
path: root/chess-images.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-14 19:52:56 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-14 19:52:56 +0000
commitd5e9f0a3c531104936728c5a599dde77c67319b0 (patch)
tree0868b9db313b9f15ddd9e74050171237cd8b889f /chess-images.el
parentd881274ead232567cf80f0057031b05f5b0551bc (diff)
*** no comment ***
Diffstat (limited to 'chess-images.el')
-rw-r--r--chess-images.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/chess-images.el b/chess-images.el
index d8dfba9..d2e2256 100644
--- a/chess-images.el
+++ b/chess-images.el
@@ -151,10 +151,18 @@ called."
(?p "pawn" 5))
"The names and index values of the different pieces.")
+(chess-message-catalog 'english
+ '((no-images-fallback . "Could not find suitable chess images; using ics1 display")))
+
(defun chess-images-handler (event &rest args)
(cond
((eq event 'initialize)
- (chess-images-initialize))
+ (when (display-graphic-p)
+ (chess-images-initialize)
+ (if chess-images-size
+ t
+ (chess-message 'no-images-fallback)
+ nil)))
((eq event 'popup)
(if chess-display-popup
(funcall chess-images-popup-function)))