summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-26 20:29:18 +0200
committerwm4 <wm4@nowhere>2014-07-26 20:29:18 +0200
commit8ed6d298c5dba49bd4f1e5dc877fcd67652123b2 (patch)
treea7be77c6aaf3dde44e83ccc0fb6807d31fcda34a /video
parent9969694ececc82f57306ff0fd3212e264c64c81b (diff)
downloadmpv-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')
-rw-r--r--video/out/w32_common.c2
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);
}