Use a semaphore object to synchronize rendering thread with the game
This commit is contained in:
parent
5192ebc44f
commit
a40282013b
6 changed files with 20 additions and 8 deletions
1
main.h
1
main.h
|
@ -62,6 +62,7 @@ typedef struct IDirectDrawImpl
|
|||
HANDLE thread;
|
||||
BOOL run;
|
||||
HANDLE ev;
|
||||
HANDLE sem;
|
||||
DEVMODE mode;
|
||||
|
||||
} render;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue