1
0
forked from aniani/vim

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

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