Try to introduce better window message handling and management, most probably needs fixing
This commit is contained in:
parent
f02ef15bc4
commit
3c79b4aa4b
3 changed files with 56 additions and 57 deletions
2
render.c
2
render.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue