mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 09:57:34 +00:00
win32: set WS_SYSMENU style always
Fixes missing icon when initial window is created without caption. Fixes: #12472
This commit is contained in:
parent
e9690727a0
commit
172d9be300
@ -813,8 +813,9 @@ static DWORD update_style(struct vo_w32_state *w32, DWORD style)
|
||||
{
|
||||
const DWORD NO_FRAME = WS_OVERLAPPED | WS_MINIMIZEBOX;
|
||||
const DWORD FRAME = WS_OVERLAPPEDWINDOW;
|
||||
const DWORD FULLSCREEN = NO_FRAME | WS_SYSMENU;
|
||||
const DWORD FULLSCREEN = NO_FRAME;
|
||||
style &= ~(NO_FRAME | FRAME | FULLSCREEN);
|
||||
style |= WS_SYSMENU;
|
||||
if (w32->current_fs) {
|
||||
style |= FULLSCREEN;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user