diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2015-03-09 22:15:01 +1100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-03-11 12:49:40 +0900 |
commit | e22ecb1585732fe7f950b72ed7021590597461ad (patch) | |
tree | 570bdfbe628b6dd7b629e27cb11c983da197d7f7 | |
parent | 6358e9be5c0b9e1575dbc0def10689a65c2c66fd (diff) | |
download | mpv-e22ecb1585732fe7f950b72ed7021590597461ad.tar.bz2 mpv-e22ecb1585732fe7f950b72ed7021590597461ad.tar.xz |
w32_common: remove redundant is_maximized function
This already exists as IsMaximized in the Windows API.
(cherry picked from commit 5f0eda7b94e5af25970bfd5bef0cf401fe3a10e7)
-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 4959b39bca..614d6ec8a7 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 }; |