diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-10-01 12:50:19 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-01 14:05:10 +0000 |
commit | 172d9be3005c6a85f4f139f1dedccefe26ea8d91 (patch) | |
tree | 50919ea9145370073f4539e59f6bfc4bade2565e | |
parent | e9690727a0b1eb09106d7364b52a8721d40244db (diff) | |
download | mpv-172d9be3005c6a85f4f139f1dedccefe26ea8d91.tar.bz2 mpv-172d9be3005c6a85f4f139f1dedccefe26ea8d91.tar.xz |
win32: set WS_SYSMENU style always
Fixes missing icon when initial window is created without caption.
Fixes: #12472
-rw-r--r-- | video/out/w32_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 0eafbcc4ae..8db3e35c34 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -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 { |