projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09efb30
)
(x_set_screen_gamma): Clear face cache.
author
Chong Yidong
<cyd@stupidchicken.com>
Mon, 12 Feb 2007 18:13:00 +0000
(18:13 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Mon, 12 Feb 2007 18:13:00 +0000
(18:13 +0000)
src/frame.c
patch
|
blob
|
history
diff --git
a/src/frame.c
b/src/frame.c
index c7ec3dda3b45ed120220d4188cb23277d1200db2..f2b7c514cf39da91bd3974de5912d20bc09de33f 100644
(file)
--- a/
src/frame.c
+++ b/
src/frame.c
@@
-3058,8
+3058,11
@@
x_set_screen_gamma (f, new_value, old_value)
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);