diff options
author | pavelxdd <pavel.otchertsov@gmail.com> | 2016-12-11 00:50:11 +0300 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2016-12-12 21:17:58 +1100 |
commit | 4399be5b624805ef70848ff010fb6ee6ad920e9f (patch) | |
tree | 188e94128264ac96cf124202911d3ed65bc7677c /video/out | |
parent | c21c68edd48ab45af1dd33c09ec809d1ee100ce1 (diff) |
win32: update winapi functions names
According to MSDN, GetWindowLong and SetWindowLong have been
superseded by GetWindowLongPtr and SetWindowLongPtr.
It's a cosmetic code change in this case.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/w32_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index f4fbb20ea9..5149339b6a 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -320,7 +320,7 @@ static void DropTarget_Init(DropTarget* This, struct vo_w32_state *w32) static void add_window_borders(HWND hwnd, RECT *rc) { - AdjustWindowRect(rc, GetWindowLong(hwnd, GWL_STYLE), 0); + AdjustWindowRect(rc, GetWindowLongPtrW(hwnd, GWL_STYLE), 0); } // basically a reverse AdjustWindowRect (win32 doesn't appear to have this) @@ -1137,7 +1137,7 @@ static void reinit_window_state(struct vo_w32_state *w32) w32->window, w32->current_fs); } - DWORD style = update_style(w32, GetWindowLong(w32->window, GWL_STYLE)); + DWORD style = update_style(w32, GetWindowLongPtrW(w32->window, GWL_STYLE)); if (w32->opts->ontop) layer = HWND_TOPMOST; @@ -1180,7 +1180,7 @@ static void reinit_window_state(struct vo_w32_state *w32) r.top = w32->window_y; r.bottom = r.top + w32->dh; - SetWindowLong(w32->window, GWL_STYLE, style); + SetWindowLongPtrW(w32->window, GWL_STYLE, style); RECT cr = r; add_window_borders(w32->window, &r); |