CU
------------------
Skullpture Entertainment
#40842461
CU
------------------
Skullpture Entertainment
#40842461
I'm using the WGPFD engine
CU
------------------
Skullpture Entertainment
#40842461
- Chris
WinMain(bla bla)
{
while(bla bla..
{
{
....translatemessages...
}
if(bActive) DoGameUpdate();
}
}
Make sure when calling DDraw functions, you check the results (ddrval).
If the result is DDRVAL_LOSTSURFACE, imediatelly restore ALL Surfaces using ->restore(), and exit your screen drawing function if ddrval is not DD_OK.
Otherwise if you try to flip and blit to a lost surface, the system will hang!
-=SikCiv=-
Downloads: ZeroOne Realm