0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

updated for version 7.0035

This commit is contained in:
Bram Moolenaar
2005-01-08 21:45:39 +00:00
parent e49b69a091
commit 9588a0f72b
15 changed files with 135 additions and 142 deletions

View File

@@ -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