http://bugs.winehq.org/show_bug.cgi?id=31967
--- Comment #23 from thanoulas thanoulas@gmail.com 2013-11-21 09:58:47 CST --- I think it's irrelevant to window creation, mostly based on the patch I provided. The window does get created, but nothing works on that. All you can see is a black screen and no sound or anything else plays in the background. If you apply the patch, you do see some weird window behaviour, but it doesn't look different to what happens without the patch ( excluding the black screen of course ).
The game creates a window with a splash image, and a window where the render target is. This gets minimized for a while, until the game starts up, then gets maximized and pulled to the front. The same happens on the non patched version, but after the window where the game gets rendered is brought to the front all you see is black, and nothing happens in the background.
I've added some trace messages to the query.c file which showed that the game was actually looping through the GL_TIMEOUT_EXPIRED case in the event_query_test function. Forcing this to return WINED3D_EVENT_QUERY_OK fixed the problem