mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-24 15:22:26 -07:00
Fix compiler warnings
* src/haikuterm.c (haiku_read_socket): Fix compiler warnings intoduced by last change.
This commit is contained in:
parent
677859b7af
commit
a81fbf8367
1 changed files with 5 additions and 3 deletions
|
|
@ -3005,14 +3005,16 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
|
|||
if (signbit (py) != signbit (b->delta_y))
|
||||
py = 0;
|
||||
|
||||
px += b->delta_x * pow (FRAME_PIXEL_HEIGHT (f), 2.0 / 3.0);
|
||||
py += b->delta_y * pow (FRAME_PIXEL_HEIGHT (f), 2.0 / 3.0);
|
||||
px += (b->delta_x
|
||||
* powf (FRAME_PIXEL_HEIGHT (f), 2.0f / 3.0f));
|
||||
py += (b->delta_y
|
||||
* powf (FRAME_PIXEL_HEIGHT (f), 2.0f / 3.0f));
|
||||
|
||||
if (fabsf (py) >= FRAME_LINE_HEIGHT (f)
|
||||
|| fabsf (px) >= FRAME_COLUMN_WIDTH (f)
|
||||
|| !x_coalesce_scroll_events)
|
||||
{
|
||||
inev.kind = (fabsf (px) > fabs (py)
|
||||
inev.kind = (fabsf (px) > fabsf (py)
|
||||
? HORIZ_WHEEL_EVENT
|
||||
: WHEEL_EVENT);
|
||||
inev.code = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue