Mercurial > emacs
changeset 75805:c606e37f4633
(x_set_screen_gamma): Clear face cache.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 12 Feb 2007 18:13:00 +0000 |
parents | 86281fc6e431 |
children | 6097792f225a |
files | src/frame.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/frame.c Mon Feb 12 18:12:34 2007 +0000 +++ b/src/frame.c Mon Feb 12 18:13:00 2007 +0000 @@ -3058,8 +3058,11 @@ if (NILP (new_value)) f->gamma = 0; else if (NUMBERP (new_value) && XFLOATINT (new_value) > 0) - /* The value 0.4545 is the normal viewing gamma. */ - f->gamma = 1.0 / (0.4545 * XFLOATINT (new_value)); + { + Fclear_face_cache (Qnil); + /* The value 0.4545 is the normal viewing gamma. */ + f->gamma = 1.0 / (0.4545 * XFLOATINT (new_value)); + } else signal_error ("Invalid screen-gamma", new_value);