0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.4.459

Problem:    Can't change the icon after building Vim.
Solution:   Load the icon from a file on startup. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2014-09-23 21:53:41 +02:00
parent cfc216e7b0
commit cddc91ccb4
5 changed files with 40 additions and 1 deletions

View File

@@ -2446,7 +2446,8 @@ SaveConsoleTitleAndIcon(void)
return;
/* Extract the first icon contained in the Vim executable. */
g_hVimIcon = ExtractIcon(NULL, exe_name, 0);
if (mch_icon_load((HANDLE *)&g_hVimIcon) == FAIL || g_hVimIcon == NULL)
g_hVimIcon = ExtractIcon(NULL, exe_name, 0);
if (g_hVimIcon != NULL)
g_fCanChangeIcon = TRUE;
}