diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2015-03-09 22:15:01 +1100 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2015-03-09 22:16:26 +1100 |
commit | 5f0eda7b94e5af25970bfd5bef0cf401fe3a10e7 (patch) | |
tree | c82a649ea6b0e053e5dfa3e546165f07a536b0fe /video/out/w32_common.c | |
parent | 735bf484965bbc935374b9014acd7a39000f4fa1 (diff) | |
download | mpv-5f0eda7b94e5af25970bfd5bef0cf401fe3a10e7.tar.bz2 mpv-5f0eda7b94e5af25970bfd5bef0cf401fe3a10e7.tar.xz |
w32_common: remove redundant is_maximized function
This already exists as IsMaximized in the Windows API.
Diffstat (limited to 'video/out/w32_common.c')
-rw-r--r-- | video/out/w32_common.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 40fef70bc0..aa74f1b7b6 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -312,16 +312,9 @@ static void subtract_window_borders(HWND hwnd, RECT *rc) rc->bottom -= b.bottom; } -static bool is_maximized(struct vo_w32_state *w32) -{ - WINDOWPLACEMENT wp = { .length = sizeof(WINDOWPLACEMENT) }; - GetWindowPlacement(w32->window, &wp); - return wp.showCmd == SW_SHOWMAXIMIZED; -} - static LRESULT borderless_nchittest(struct vo_w32_state *w32, int x, int y) { - if (is_maximized(w32)) + if (IsMaximized(w32->window)) return HTCLIENT; POINT mouse = { x, y }; |