Strangest things happen.. I've a 'callback' function to draw loading progress. It looks like this:
Where UpdateDisplayPointer contains
display = GetDisplay(); - this is because I cannot call Game::GetDisplay directly.
So, I call it from the main loop, and the real loop looks like this:
This works fine on most devices. But it doesn't on some WM5 - ipaqs 2xxx(have one tester with 21xx and one with 27xx).
This actually extremely puzzles and annoys me, because I simply don't understand why such thing happens.
Any ideas?
PS: One another odd thing: It works fine(loadingGameInit is called, display is updated, everyone're happy) when inside GameInit(). Once I do such tricks inside GameLoop(), everything hangs without any message or exception.
- Code:
void loadingGameInit(..)
{
display->Update();
GamePointer->UpdateDisplayPointer();
// draw stuff..
}
Where UpdateDisplayPointer contains
display = GetDisplay(); - this is because I cannot call Game::GetDisplay directly.
So, I call it from the main loop, and the real loop looks like this:
- Code:
GameLoop {
display = GetDisplay();
//drawings..
display->Update();
display = GetDisplay();
//drawings..
display->Update();
} // End of GameLoop.
This works fine on most devices. But it doesn't on some WM5 - ipaqs 2xxx(have one tester with 21xx and one with 27xx).
This actually extremely puzzles and annoys me, because I simply don't understand why such thing happens.
Any ideas?
PS: One another odd thing: It works fine(loadingGameInit is called, display is updated, everyone're happy) when inside GameInit(). Once I do such tricks inside GameLoop(), everything hangs without any message or exception.