Commit 9dc95187 authored by Kim F. Storm's avatar Kim F. Storm

(x_set_line_spacing, x_set_screen_gamma): Use signal_error.

parent 692ae65c
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment