diff options
| author | Chong Yidong | 2007-02-12 18:13:00 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-02-12 18:13:00 +0000 |
| commit | bc4dcc2cb8ad877b77a5f2c6ef5a0b8856f1eedc (patch) | |
| tree | cd3de7bf303b0aa73446b3494c689c7b3aeb2f37 /src/frame.c | |
| parent | 09efb30a186f58116e27a3a7ce2da23a4db9f002 (diff) | |
| download | emacs-bc4dcc2cb8ad877b77a5f2c6ef5a0b8856f1eedc.tar.gz emacs-bc4dcc2cb8ad877b77a5f2c6ef5a0b8856f1eedc.zip | |
(x_set_screen_gamma): Clear face cache.
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index c7ec3dda3b4..f2b7c514cf3 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -3058,8 +3058,11 @@ x_set_screen_gamma (f, new_value, old_value) | |||
| 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 | ||