Menus [2/6]: Popop menu placement
Michael Kaufmann
hallo at michael-kaufmann.ch
Wed Apr 19 14:37:06 CDT 2006
Changelog:
- Place the popup menu such that the first item in a popup menu is at
the same y position as the menu item that activated the popup menu
-------------- next part --------------
--- menu.c 2006-04-19 21:06:02.000000000 +0200
+++ menu-new.c 2006-04-19 21:06:06.000000000 +0200
@@ -2340,7 +2340,8 @@
MENU_AdjustMenuItemRect(menu, &rc);
rect.left += rc.right - GetSystemMetrics(SM_CXBORDER);
- rect.top += rc.top;
+ /* Old top position (Windows 9x): rect.top += rc.top; */
+ rect.top += rc.top - MENU_TOP_MARGIN;
rect.right = rc.left - rc.right + GetSystemMetrics(SM_CXBORDER);
rect.bottom = rc.top - rc.bottom;
}
More information about the wine-patches
mailing list