summaryrefslogtreecommitdiff
path: root/src/gui_photon.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_photon.c
parente49b69a091e72ce1b1a5e7091ebf2ebddd795e6d (diff)
downloadvim-9588a0f72bc1f72962e3e327d29775d3a970e579.zip
updated for version 7.0035
Diffstat (limited to 'src/gui_photon.c')
-rw-r--r--src/gui_photon.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/gui_photon.c b/src/gui_photon.c
index 9223a40ec..fc96cc187 100644
--- a/src/gui_photon.c
+++ b/src/gui_photon.c
@@ -1896,29 +1896,18 @@ gui_mch_mousehide(int hide)
}
int
-gui_mch_get_mouse_x(void)
+gui_mch_getmouse(int *x, int *y)
{
PhCursorInfo_t info;
- short x, y;
+ short ix, iy;
/* FIXME: does this return the correct position,
* with respect to the border? */
PhQueryCursor( PhInputGroup( NULL ), &info );
- PtGetAbsPosition( gui.vimTextArea , &x, &y );
+ PtGetAbsPosition( gui.vimTextArea , &ix, &iy );
- return( info.pos.x - x );
-}
-
- int
-gui_mch_get_mouse_y(void)
-{
- PhCursorInfo_t info;
- short x, y;
-
- PhQueryCursor( PhInputGroup( NULL ), &info );
- PtGetAbsPosition( gui.vimTextArea , &x, &y );
- /* TODO: Add border offset? */
- return( info.pos.y - y );
+ *x = info.pos.x - ix;
+ *y = info.pos.y - iy;
}
void