comparison LOD.cpp @ 2132:49de109bbab5

SavePCXScreenshot() continue
author Ritor1
date Sun, 29 Dec 2013 01:26:15 +0600
parents 259df09dfb50
children 92511cd8fcdb
comparison
equal deleted inserted replaced
2131:651b24553ae9 2132:49de109bbab5
2377 2377
2378 2378
2379 //----- (004103BB) -------------------------------------------------------- 2379 //----- (004103BB) --------------------------------------------------------
2380 void LODFile_IconsBitmaps::ReleaseHardwareTextures() 2380 void LODFile_IconsBitmaps::ReleaseHardwareTextures()
2381 { 2381 {
2382 LODFile_IconsBitmaps *v1; // esi@1 2382 //LODFile_IconsBitmaps *v1; // esi@1
2383 unsigned int v2; // edi@1 2383 unsigned int v2; // edi@1
2384 struct IDirect3DTexture2 **v3; // eax@2 2384 //struct IDirect3DTexture2 **v3; // eax@2
2385 struct IDirect3DTexture2 *v4; // eax@3 2385 //struct IDirect3DTexture2 *v4; // eax@3
2386 struct IDirectDrawSurface **v5; // eax@5 2386 //struct IDirectDrawSurface **v5; // eax@5
2387 struct IDirectDrawSurface *v6; // eax@6 2387 //struct IDirectDrawSurface *v6; // eax@6
2388 2388
2389 v1 = this; 2389 //v1 = this;
2390 v2 = this->uNumLoadedFiles; 2390
2391 while ( 1 ) 2391 //while ( 1 )
2392 { 2392 for ( uint i = 0; i < this->uNumLoadedFiles; i++ )
2393 --v2; 2393 {
2394 if ( (v2 & 0x80000000u) != 0 ) 2394
2395 break; 2395 //if ( (v2 & 0x80000000u) != 0 )
2396 v3 = v1->pHardwareTextures; 2396 //break;
2397 if ( v3 ) 2397 //v3 = this->pHardwareTextures;
2398 { 2398 if ( this->pHardwareTextures )
2399 v4 = v3[v2]; 2399 {
2400 if ( v4 ) 2400 //v4 = this->pHardwareTextures[v2];
2401 { 2401 if ( this->pHardwareTextures[i] )
2402 v4->Release(); 2402 {
2403 v1->pHardwareTextures[v2] = 0; 2403 this->pHardwareTextures[i]->Release();
2404 v1->ptr_011BB4[v2] = 1; 2404 this->pHardwareTextures[i] = 0;
2405 } 2405 this->ptr_011BB4[i] = 1;
2406 } 2406 }
2407 v5 = v1->pHardwareSurfaces; 2407 }
2408 if ( v5 ) 2408 //v5 = this->pHardwareSurfaces;
2409 { 2409 if ( this->pHardwareSurfaces )
2410 v6 = v5[v2]; 2410 {
2411 if ( v6 ) 2411 //v6 = this->pHardwareSurfaces[v2];
2412 { 2412 if ( this->pHardwareSurfaces[i] )
2413 v6->Release(); 2413 {
2414 v1->pHardwareSurfaces[v2] = 0; 2414 this->pHardwareSurfaces[i]->Release();
2415 v1->ptr_011BB4[v2] = 1; 2415 this->pHardwareSurfaces[i] = 0;
2416 this->ptr_011BB4[i] = 1;
2416 } 2417 }
2417 } 2418 }
2418 } 2419 }
2419 } 2420 }
2420 2421