diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-01-08 21:45:39 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-01-08 21:45:39 +0000 |
commit | 9588a0f72bc1f72962e3e327d29775d3a970e579 (patch) | |
tree | 239a6a28f7f033daafca7b95ca8b10150de8328f /src/gui_w32.c | |
parent | e49b69a091e72ce1b1a5e7091ebf2ebddd795e6d (diff) | |
download | vim-git-9588a0f72bc1f72962e3e327d29775d3a970e579.tar.gz |
updated for version 7.0035
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index cf07b2632..e0b545cf3 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -3184,6 +3184,8 @@ gui_mch_tearoff( int nameLen; int padding0, padding1, padding2 = 0; int sepPadding=0; + int x; + int y; #ifdef USE_SYSMENU_FONT LOGFONT lfSysmenu; int use_lfSysmenu = FALSE; @@ -3304,12 +3306,13 @@ gui_mch_tearoff( *p++ = HIWORD(lExtendedStyle); pnumitems = p; /* save where the number of items must be stored */ *p++ = 0; // NumberOfItems(will change later) + gui_mch_getmouse(&x, &y); if (initX == 0xffffL) - *p++ = PixelToDialogX(gui_mch_get_mouse_x()); // x + *p++ = PixelToDialogX(x); // x else *p++ = PixelToDialogX(initX); // x if (initY == 0xffffL) - *p++ = PixelToDialogY(gui_mch_get_mouse_y()); // y + *p++ = PixelToDialogY(y); // y else *p++ = PixelToDialogY(initY); // y *p++ = PixelToDialogX(dlgwidth); // cx |