From 8ed6d298c5dba49bd4f1e5dc877fcd67652123b2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 26 Jul 2014 20:29:18 +0200 Subject: 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. --- video/out/w32_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3