diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-03-02 09:21:19 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-03-02 09:22:17 -0800 |
commit | d0d26c1379598983d2163deb13ba8ab13b14ba2c (patch) | |
tree | 93e7cef298261c30eac66ec00b4250076d015419 /src/frame.c | |
parent | 4e2622bf0d63c40f447d44e6401ea054ef55b261 (diff) | |
download | emacs-d0d26c1379598983d2163deb13ba8ab13b14ba2c.tar.gz |
Remove XFLOATINT
* src/lisp.h (XFLOATINT): Remove this alias for extract_float.
All callers changed to use extract_float.
* src/frame.h (NUMVAL): Now an inline function, not a macro.
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index 5e1e2f19906..daf424567df 100644 --- a/src/frame.c +++ b/src/frame.c @@ -3530,9 +3530,9 @@ x_set_screen_gamma (struct frame *f, Lisp_Object new_value, Lisp_Object old_valu if (NILP (new_value)) f->gamma = 0; - else if (NUMBERP (new_value) && XFLOATINT (new_value) > 0) + else if (NUMBERP (new_value) && extract_float (new_value) > 0) /* The value 0.4545 is the normal viewing gamma. */ - f->gamma = 1.0 / (0.4545 * XFLOATINT (new_value)); + f->gamma = 1.0 / (0.4545 * extract_float (new_value)); else signal_error ("Invalid screen-gamma", new_value); |