diff options
author | wm4 <wm4@nowhere> | 2014-07-26 20:29:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-26 20:29:18 +0200 |
commit | 8ed6d298c5dba49bd4f1e5dc877fcd67652123b2 (patch) | |
tree | a7be77c6aaf3dde44e83ccc0fb6807d31fcda34a /video/out/w32_common.c | |
parent | 9969694ececc82f57306ff0fd3212e264c64c81b (diff) | |
download | mpv-8ed6d298c5dba49bd4f1e5dc877fcd67652123b2.tar.bz2 mpv-8ed6d298c5dba49bd4f1e5dc877fcd67652123b2.tar.xz |
win32: make a flag explicit
This shouldn't change anything. But it's worth making this explicit,
since it's very subtle and unintuitive: if the X parameter is the
magic value CW_USEDEFAULT, then the Y parameter is used as nCmdShow
parameter to ShowWindow(). And in our case, this is SW_HIDE (0),
because we want to create a hidden window.
Diffstat (limited to 'video/out/w32_common.c')
-rw-r--r-- | video/out/w32_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 8d4a9dfc89..cfbdfcd65d 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -950,7 +950,7 @@ int vo_w32_init(struct vo *vo) w32->window = CreateWindowExW(0, classname, classname, update_style(w32, 0), - CW_USEDEFAULT, 0, 100, 100, + CW_USEDEFAULT, SW_HIDE, 100, 100, 0, 0, hInstance, w32); } |