ports/graphics/gthumb/patches/patch-gthumb_gth-browser_c

18 lines
794 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
../gthumb-3.12.2/gthumb/gth-browser.c:2460:7: warning:
using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
Index: gthumb/gth-browser.c
--- gthumb/gth-browser.c.orig
+++ gthumb/gth-browser.c
2023-09-08 05:21:37 +00:00
@@ -2473,8 +2473,8 @@ viewer_motion_notify_event_cb (GtkWidget *widget,
2023-08-16 22:26:55 +00:00
if (browser->priv->last_mouse_y == 0.0)
browser->priv->last_mouse_y = event->y;
- if ((abs (browser->priv->last_mouse_x - event->x) > MOTION_THRESHOLD)
- || (abs (browser->priv->last_mouse_y - event->y) > MOTION_THRESHOLD))
+ if ((fabs (browser->priv->last_mouse_x - event->x) > MOTION_THRESHOLD)
+ || (fabs (browser->priv->last_mouse_y - event->y) > MOTION_THRESHOLD))
{
if (! browser->priv->pointer_visible) {
browser->priv->pointer_visible = TRUE;