Ive noticed Mortal Kombat 4 updates the image where black usually appears.done?
I tried blitting the screen when WM_PAINT is called, but it seems if I put a function call in WM_PAINT the app causes a fatal error
Anyone know how it is done?
Posted 22 December 1999 - 06:20 AM
Ive noticed Mortal Kombat 4 updates the image where black usually appears.done?
I tried blitting the screen when WM_PAINT is called, but it seems if I put a function call in WM_PAINT the app causes a fatal error
Anyone know how it is done?
Posted 21 December 1999 - 06:35 PM
code:
while (TRUE)
{
if (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))
{
if (!GetMessage(&msg, NULL, 0, 0))
return msg.wParam;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
else if (g_bActive)
{
UpdateFrame(hWnd);
}
else
{
// Make sure we go to sleep if we have nothing else to do
WaitMessage();
}
This is from the Stretch DX7 example.
------------------
Breakaway Games