summaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2006-07-18 13:28:09 +0000
committerKim F. Storm <storm@cua.dk>2006-07-18 13:28:09 +0000
commit9dc951871640a56262fa3a0e52fdf8119f8cafb6 (patch)
treeed1e023b041126950b821a9e0af7315128c40574 /src/frame.c
parent692ae65c86d601f90c0b1937546ebcb874bda066 (diff)
downloademacs-9dc951871640a56262fa3a0e52fdf8119f8cafb6.tar.gz
(x_set_line_spacing, x_set_screen_gamma): Use signal_error.
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/frame.c b/src/frame.c
index 6e2a1a21e55..1fdeb129f89 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3030,8 +3030,7 @@ x_set_line_spacing (f, new_value, old_value)
else if (NATNUMP (new_value))
f->extra_line_spacing = XFASTINT (new_value);
else
- Fsignal (Qerror, Fcons (build_string ("Invalid line-spacing"),
- Fcons (new_value, Qnil)));
+ signal_error ("Invalid line-spacing", new_value);
if (FRAME_VISIBLE_P (f))
redraw_frame (f);
}
@@ -3051,8 +3050,7 @@ x_set_screen_gamma (f, new_value, old_value)
/* The value 0.4545 is the normal viewing gamma. */
f->gamma = 1.0 / (0.4545 * XFLOATINT (new_value));
else
- Fsignal (Qerror, Fcons (build_string ("Invalid screen-gamma"),
- Fcons (new_value, Qnil)));
+ signal_error ("Invalid screen-gamma", new_value);
clear_face_cache (0);
}