Mercurial > emacs
comparison src/frame.c @ 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 | 021ab5817b76 |
children | 7988c916074a 52a7f3f50b89 |
comparison
equal
deleted
inserted
replaced
75804:86281fc6e431 | 75805:c606e37f4633 |
---|---|
3056 Lisp_Object new_value, old_value; | 3056 Lisp_Object new_value, old_value; |
3057 { | 3057 { |
3058 if (NILP (new_value)) | 3058 if (NILP (new_value)) |
3059 f->gamma = 0; | 3059 f->gamma = 0; |
3060 else if (NUMBERP (new_value) && XFLOATINT (new_value) > 0) | 3060 else if (NUMBERP (new_value) && XFLOATINT (new_value) > 0) |
3061 /* The value 0.4545 is the normal viewing gamma. */ | 3061 { |
3062 f->gamma = 1.0 / (0.4545 * XFLOATINT (new_value)); | 3062 Fclear_face_cache (Qnil); |
3063 /* The value 0.4545 is the normal viewing gamma. */ | |
3064 f->gamma = 1.0 / (0.4545 * XFLOATINT (new_value)); | |
3065 } | |
3063 else | 3066 else |
3064 signal_error ("Invalid screen-gamma", new_value); | 3067 signal_error ("Invalid screen-gamma", new_value); |
3065 | 3068 |
3066 clear_face_cache (0); | 3069 clear_face_cache (0); |
3067 } | 3070 } |