w32_common: don't set small icon

Windows will automatically choose the correct icon size if this field is
unset.
This commit is contained in:
James Ross-Gowan 2014-02-16 21:32:58 +11:00 committed by wm4
parent 24fa69dbfa
commit b3b59b9a2d
1 changed files with 1 additions and 4 deletions

View File

@ -826,17 +826,14 @@ int vo_w32_init(struct vo *vo)
HINSTANCE hInstance = GetModuleHandleW(NULL); HINSTANCE hInstance = GetModuleHandleW(NULL);
HICON mplayerIcon = LoadIconW(hInstance, L"IDI_ICON1");
WNDCLASSEXW wcex = { WNDCLASSEXW wcex = {
.cbSize = sizeof wcex, .cbSize = sizeof wcex,
.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW, .style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
.lpfnWndProc = WndProc, .lpfnWndProc = WndProc,
.hInstance = hInstance, .hInstance = hInstance,
.hIcon = mplayerIcon, .hIcon = LoadIconW(hInstance, L"IDI_ICON1"),
.hCursor = LoadCursor(NULL, IDC_ARROW), .hCursor = LoadCursor(NULL, IDC_ARROW),
.lpszClassName = classname, .lpszClassName = classname,
.hIconSm = mplayerIcon,
}; };
if (!RegisterClassExW(&wcex)) { if (!RegisterClassExW(&wcex)) {