mirror of
https://github.com/mpv-player/mpv
synced 2024-09-05 02:48:21 +02:00
win32: simplify icon loading
I have no idea why the code used this roundabout method. Also detab mplayer.rc.
This commit is contained in:
parent
923f353d2a
commit
3bb456b14d
@ -631,12 +631,7 @@ int vo_w32_init(struct vo *vo)
|
||||
|
||||
HINSTANCE hInstance = GetModuleHandleW(NULL);
|
||||
|
||||
HICON mplayerIcon = 0;
|
||||
wchar_t exedir[MAX_PATH];
|
||||
if (GetModuleFileNameW(0, exedir, MAX_PATH))
|
||||
mplayerIcon = ExtractIconW(hInstance, exedir, 0);
|
||||
if (!mplayerIcon)
|
||||
mplayerIcon = LoadIcon(0, IDI_APPLICATION);
|
||||
HICON mplayerIcon = LoadIconW(hInstance, L"IDI_ICON1");
|
||||
|
||||
WNDCLASSEXW wcex = {
|
||||
.cbSize = sizeof wcex,
|
||||
|
Loading…
Reference in New Issue
Block a user