diff options
Diffstat (limited to 'src')
| -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 | ||