summaryrefslogtreecommitdiff
path: root/src/gui_mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_mac.c')
-rw-r--r--src/gui_mac.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/gui_mac.c b/src/gui_mac.c
index 3b73339df..b930852a4 100644
--- a/src/gui_mac.c
+++ b/src/gui_mac.c
@@ -5672,27 +5672,16 @@ display_errors()
#endif
/*
- * Get current y mouse coordinate in text window.
- * Return -1 when unknown.
+ * Get current mouse coordinates in text window.
*/
- int
-gui_mch_get_mouse_x()
-{
- Point where;
-
- GetMouse(&where);
-
- return (where.h);
-}
-
- int
-gui_mch_get_mouse_y()
+void gui_mch_getmouse(int *x, int *y)
{
Point where;
GetMouse(&where);
- return (where.v);
+ *x = where.h;
+ *y = where.v;
}
void