Try to introduce better window message handling and management, most probably needs fixing

This commit is contained in:
Toni Spets 2011-09-11 19:12:07 +03:00
parent f02ef15bc4
commit 3c79b4aa4b
3 changed files with 56 additions and 57 deletions

View file

@ -87,7 +87,7 @@ DWORD WINAPI render_main(void)
glEnable(GL_TEXTURE_2D);
while(ddraw->render.run && WaitForSingleObject(ddraw->render.sem, 100) != WAIT_FAILED)
while(ddraw->render.run && WaitForSingleObject(ddraw->render.sem, INFINITE) != WAIT_FAILED)
{
scale_w = (float)ddraw->width/tex_width;
scale_h = (float)ddraw->height/tex_height;