summaryrefslogtreecommitdiffstats
path: root/src/gui_w48.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-08 21:45:39 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-08 21:45:39 +0000
commit9588a0f72bc1f72962e3e327d29775d3a970e579 (patch)
tree239a6a28f7f033daafca7b95ca8b10150de8328f /src/gui_w48.c
parente49b69a091e72ce1b1a5e7091ebf2ebddd795e6d (diff)
updated for version 7.0035
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r--src/gui_w48.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c
index 77cc24dbe3..33edfd3af2 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -2411,33 +2411,18 @@ gui_mch_destroy_scrollbar(scrollbar_T *sb)
#endif
/*
- * Get current x mouse coordinate in text window.
- * Return -1 when unknown.
+ * Get current mouse coordinates in text window.
*/
- int
-gui_mch_get_mouse_x(void)
-{
- RECT rct;
- POINT mp;
-
- (void)GetWindowRect(s_textArea, &rct);
- (void)GetCursorPos((LPPOINT)&mp);
- return (int)(mp.x - rct.left);
-}
-
-/*
- * Get current y mouse coordinate in text window.
- * Return -1 when unknown.
- */
- int
-gui_mch_get_mouse_y(void)
+ void
+gui_mch_get_mouse_(int *x, int *y)
{
RECT rct;
POINT mp;
(void)GetWindowRect(s_textArea, &rct);
(void)GetCursorPos((LPPOINT)&mp);
- return (int)(mp.y - rct.top);
+ *x = (int)(mp.x - rct.left);
+ *y = (int)(mp.y - rct.top);
}
/*