Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/1c85232a6345d5dd9730a...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/1c85232a6345d5dd9730a6c...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/1c85232a6345d5dd9730a6ca6...
The branch, master has been updated
via 1c85232a6345d5dd9730a6ca675db1cbcf1e1db9 (commit)
from 2277fb0284d50d378c2b0ca03798bf1512769eea (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=1c85232a6345d5dd973...
commit 1c85232a6345d5dd9730a6ca675db1cbcf1e1db9
Author: Michael Drake <tlsa(a)netsurf-browser.org>
Commit: Michael Drake <tlsa(a)netsurf-browser.org>
Improve responsiveness of drags.
diff --git a/riscos/mouse.c b/riscos/mouse.c
index 5ba1260..c655340 100644
--- a/riscos/mouse.c
+++ b/riscos/mouse.c
@@ -234,11 +234,13 @@ void ro_mouse_kill(void *data)
os_t ro_mouse_poll_interval(void)
{
- if (ro_mouse_drag_track_callback == NULL &&
- ro_mouse_poll_track_callback == NULL)
- return 0;
+ if (ro_mouse_drag_track_callback != NULL)
+ return 4;
+
+ if (ro_mouse_poll_track_callback != NULL)
+ return 10;
- return 10; // \TODO Return 4 for DRAG_SELECTION && DRAG_SCROLL
+ return 0;
}
diff --git a/riscos/mouse.h b/riscos/mouse.h
index e78a37e..bcb3b50 100644
--- a/riscos/mouse.h
+++ b/riscos/mouse.h
@@ -24,11 +24,6 @@
#ifndef _NETSURF_RISCOS_MOUSE_H_
#define _NETSURF_RISCOS_MOUSE_H_
-enum ro_mouse_track_response {
- RO_MOUSE_RESPONSE_LOW,
- RO_MOUSE_RESPONSE_HIGH
-};
-
/**
* Process Null polls for any drags and mouse trackers that are currently
-----------------------------------------------------------------------
Summary of changes:
riscos/mouse.c | 10 ++++++----
riscos/mouse.h | 5 -----
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/riscos/mouse.c b/riscos/mouse.c
index 5ba1260..c655340 100644
--- a/riscos/mouse.c
+++ b/riscos/mouse.c
@@ -234,11 +234,13 @@ void ro_mouse_kill(void *data)
os_t ro_mouse_poll_interval(void)
{
- if (ro_mouse_drag_track_callback == NULL &&
- ro_mouse_poll_track_callback == NULL)
- return 0;
+ if (ro_mouse_drag_track_callback != NULL)
+ return 4;
+
+ if (ro_mouse_poll_track_callback != NULL)
+ return 10;
- return 10; // \TODO Return 4 for DRAG_SELECTION && DRAG_SCROLL
+ return 0;
}
diff --git a/riscos/mouse.h b/riscos/mouse.h
index e78a37e..bcb3b50 100644
--- a/riscos/mouse.h
+++ b/riscos/mouse.h
@@ -24,11 +24,6 @@
#ifndef _NETSURF_RISCOS_MOUSE_H_
#define _NETSURF_RISCOS_MOUSE_H_
-enum ro_mouse_track_response {
- RO_MOUSE_RESPONSE_LOW,
- RO_MOUSE_RESPONSE_HIGH
-};
-
/**
* Process Null polls for any drags and mouse trackers that are currently
--
NetSurf Browser