well I finally brought my linux code to windows, and for some reason the thread code for the output doesn't work.. Here's the code:
int OutputThreadFunction(void * data)
{
while(page!=close)
{
while(page==game)//Game screen
GameOutput();
}
return 0;
}
page is a global variable with type enum(close and game are 2 fields).
Now here's where the WTF comes in, when I change my code to this, it works(except it greatly hinders performance when not on game page)!?
int OutputThreadFunction(void * data)
{
while(page!=close)
{
printf("");
while(page==game)//Game screen
GameOutput();
}
return 0;
}
Is there any explaination to why this would happen?