mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
Allow non-float values in x-scroll-event-delta-factor
* src/xterm.c (handle_one_xevent): Use XFLOATINT instead of XFLOAT_DATA.
This commit is contained in:
parent
72b7fccc15
commit
a59deef359
1 changed files with 2 additions and 2 deletions
|
|
@ -10045,8 +10045,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
|
|||
|
||||
scroll_unit = pow (FRAME_PIXEL_HEIGHT (f), 2.0 / 3.0);
|
||||
|
||||
if (FLOATP (Vx_scroll_event_delta_factor))
|
||||
scroll_unit *= XFLOAT_DATA (Vx_scroll_event_delta_factor);
|
||||
if (NUMBERP (Vx_scroll_event_delta_factor))
|
||||
scroll_unit *= XFLOATINT (Vx_scroll_event_delta_factor);
|
||||
|
||||
if (val->horizontal)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue