mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.874
Problem: MS-Windows: When Vim runs inside another application, the size isn't right. Solution: When in child mode compute the size differently. (Agorgianitis Loukas)
This commit is contained in:
@@ -3335,6 +3335,8 @@ gui_mch_newfont()
|
|||||||
RECT rect;
|
RECT rect;
|
||||||
|
|
||||||
GetWindowRect(s_hwnd, &rect);
|
GetWindowRect(s_hwnd, &rect);
|
||||||
|
if (win_socket_id == 0)
|
||||||
|
{
|
||||||
gui_resize_shell(rect.right - rect.left
|
gui_resize_shell(rect.right - rect.left
|
||||||
- (GetSystemMetrics(SM_CXFRAME) +
|
- (GetSystemMetrics(SM_CXFRAME) +
|
||||||
GetSystemMetrics(SM_CXPADDEDBORDER)) * 2,
|
GetSystemMetrics(SM_CXPADDEDBORDER)) * 2,
|
||||||
@@ -3346,6 +3348,17 @@ gui_mch_newfont()
|
|||||||
- gui_mswin_get_menu_height(FALSE)
|
- gui_mswin_get_menu_height(FALSE)
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Inside another window, don't use the frame and border. */
|
||||||
|
gui_resize_shell(rect.right - rect.left,
|
||||||
|
rect.bottom - rect.top
|
||||||
|
#ifdef FEAT_MENU
|
||||||
|
- gui_mswin_get_menu_height(FALSE)
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
874,
|
||||||
/**/
|
/**/
|
||||||
873,
|
873,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user