mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:12:25 +00:00
w32_common: remove redundant is_maximized function
This already exists as IsMaximized in the Windows API.
This commit is contained in:
parent
735bf48496
commit
5f0eda7b94
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user