comparison Render.cpp @ 1038:39f42990698f

Cleanings
author Nomad
date Thu, 23 May 2013 03:29:29 +0200
parents c45d51b3f4f4
children 48168499f52e
comparison
equal deleted inserted replaced
1035:306ec23b37df 1038:39f42990698f
5547 this->pBeforePresentFunction(); 5547 this->pBeforePresentFunction();
5548 if ( v1->pRenderD3D ) 5548 if ( v1->pRenderD3D )
5549 { 5549 {
5550 if ( v1->field_40110 ) 5550 if ( v1->field_40110 )
5551 { 5551 {
5552 if (pAsyncMouse)
5553 pAsyncMouse->_46BAEC();
5554 pRenderD3D->Present(false); 5552 pRenderD3D->Present(false);
5555 if (pAsyncMouse)
5556 pAsyncMouse->_46BB0A();
5557 } 5553 }
5558 } 5554 }
5559 else 5555 else
5560 { 5556 {
5561 if ( v1->bWindowMode ) 5557 if ( v1->bWindowMode )
6516 v4 = pSurface; 6512 v4 = pSurface;
6517 v9 = 1; 6513 v9 = 1;
6518 result = pSurface->Lock(0, pDesc, uLockFlags, 0); 6514 result = pSurface->Lock(0, pDesc, uLockFlags, 0);
6519 if ( result == DDERR_SURFACELOST ) 6515 if ( result == DDERR_SURFACELOST )
6520 { 6516 {
6521 if (pAsyncMouse)
6522 pAsyncMouse->Suspend();
6523 v6 = v4->Restore(); 6517 v6 = v4->Restore();
6524 if ( v6 ) 6518 if ( v6 )
6525 { 6519 {
6526 if ( v6 != DDERR_IMPLICITLYCREATED ) 6520 if ( v6 != DDERR_IMPLICITLYCREATED )
6527 { 6521 {
6546 goto LABEL_20; 6540 goto LABEL_20;
6547 } 6541 }
6548 if ( pRenderer->pRenderD3D ) 6542 if ( pRenderer->pRenderD3D )
6549 pRenderD3D->HandleLostResources(); 6543 pRenderD3D->HandleLostResources();
6550 result = pRenderer->pDirectDraw4->RestoreAllSurfaces(); 6544 result = pRenderer->pDirectDraw4->RestoreAllSurfaces();
6551 if (pAsyncMouse)
6552 pAsyncMouse->Resume();
6553 } 6545 }
6554 else 6546 else
6555 { 6547 {
6556 if ( result ) 6548 if ( result )
6557 { 6549 {
10921 pEventTimer->Resume(); 10913 pEventTimer->Resume();
10922 if ( BYTE1(dword_6BE364_game_settings_1) & 0x10 ) 10914 if ( BYTE1(dword_6BE364_game_settings_1) & 0x10 )
10923 BYTE1(dword_6BE364_game_settings_1) &= 0xEFu; 10915 BYTE1(dword_6BE364_game_settings_1) &= 0xEFu;
10924 else 10916 else
10925 pMiscTimer->Resume(); 10917 pMiscTimer->Resume();
10926 pAsyncMouse->Release();
10927 CreateAsyncMouse();
10928 if (pAsyncMouse)
10929 pAsyncMouse->Clip();
10930 } 10918 }
10931 } 10919 }
10932 // 6BE364: using guessed type int dword_6BE364_game_settings_1; 10920 // 6BE364: using guessed type int dword_6BE364_game_settings_1;
10933 // A74C88: using guessed type int dword_A74C88; 10921 // A74C88: using guessed type int dword_A74C88;
10934 10922