# HG changeset patch # User Chong Yidong # Date 1171303980 0 # Node ID c606e37f4633ddfd133f2459f4e2abfe815ea687 # Parent 86281fc6e431fe8c87554b2ab1d37fba0a58ab7e (x_set_screen_gamma): Clear face cache. diff -r 86281fc6e431 -r c606e37f4633 src/frame.c --- 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);