diff options
| author | Gerd Moellmann | 2000-09-07 11:39:31 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-07 11:39:31 +0000 |
| commit | 75429768654c30193fe77251aa75565a59cd2b84 (patch) | |
| tree | c2433b311e6c16d964bac5f92fa2b0d73b7ecece | |
| parent | 047bc928e5672963c11cca69e16a586ef570ef29 (diff) | |
| download | emacs-75429768654c30193fe77251aa75565a59cd2b84.tar.gz emacs-75429768654c30193fe77251aa75565a59cd2b84.zip | |
(frame-set-background-mode): Use frame-parameter
instead of frame-parameters.
| -rw-r--r-- | lisp/faces.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index d4c27ffb0c3..92578c73061 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1302,7 +1302,6 @@ this won't have the expected effect." | |||
| 1302 | (let* ((bg-resource | 1302 | (let* ((bg-resource |
| 1303 | (and window-system | 1303 | (and window-system |
| 1304 | (x-get-resource ".backgroundMode" "BackgroundMode"))) | 1304 | (x-get-resource ".backgroundMode" "BackgroundMode"))) |
| 1305 | (params (frame-parameters frame)) | ||
| 1306 | (bg-mode (cond (frame-background-mode) | 1305 | (bg-mode (cond (frame-background-mode) |
| 1307 | ((null window-system) | 1306 | ((null window-system) |
| 1308 | ;; No way to determine this automatically (?). | 1307 | ;; No way to determine this automatically (?). |
| @@ -1310,8 +1309,7 @@ this won't have the expected effect." | |||
| 1310 | (bg-resource | 1309 | (bg-resource |
| 1311 | (intern (downcase bg-resource))) | 1310 | (intern (downcase bg-resource))) |
| 1312 | ((< (apply '+ (x-color-values | 1311 | ((< (apply '+ (x-color-values |
| 1313 | (cdr (assq 'background-color | 1312 | (frame-parameter frame 'background-color) |
| 1314 | params)) | ||
| 1315 | frame)) | 1313 | frame)) |
| 1316 | ;; Just looking at the screen, colors whose | 1314 | ;; Just looking at the screen, colors whose |
| 1317 | ;; values add up to .6 of the white total | 1315 | ;; values add up to .6 of the white total |