Mercurial > mm7
comparison Render.cpp @ 1578:56cc81b1ed49
workaround for crash on startup
fixes for logs
author | Beri Levi berilevi@gmail.com |
---|---|
date | Tue, 10 Sep 2013 19:33:21 +0300 |
parents | 2d9c8f609a3c |
children | cff02d7d3460 |
comparison
equal
deleted
inserted
replaced
1575:43d3536a20f7 | 1578:56cc81b1ed49 |
---|---|
6451 bMipMaps, | 6451 bMipMaps, |
6452 uMinDeviceTextureDim) ) | 6452 uMinDeviceTextureDim) ) |
6453 Error("HiScreen16::LoadTexture - D3Drend->CreateTexture() failed: %x", 0); | 6453 Error("HiScreen16::LoadTexture - D3Drend->CreateTexture() failed: %x", 0); |
6454 //v10 = *pOutSurface; | 6454 //v10 = *pOutSurface; |
6455 //v11 = 0; | 6455 //v11 = 0; |
6456 if ( bMipMaps ) | 6456 if (bMipMaps) |
6457 { | 6457 { |
6458 Dst._450DDE(); | 6458 Dst._450DDE(); |
6459 //v20 = 0; | 6459 //v20 = 0; |
6460 Dst._450DF1(&stru_4EFCBC, &stru_4EFCBC); | 6460 Dst._450DF1(&stru_4EFCBC, &stru_4EFCBC); |
6461 | 6461 |
6470 memset(&desc, 0, sizeof(DDSURFACEDESC2)); | 6470 memset(&desc, 0, sizeof(DDSURFACEDESC2)); |
6471 desc.dwSize = sizeof(DDSURFACEDESC2); | 6471 desc.dwSize = sizeof(DDSURFACEDESC2); |
6472 | 6472 |
6473 if ( LockSurface_DDraw4(pNextSurf, &desc, DDLOCK_WAIT | DDLOCK_WRITEONLY) ) | 6473 if ( LockSurface_DDraw4(pNextSurf, &desc, DDLOCK_WAIT | DDLOCK_WRITEONLY) ) |
6474 { | 6474 { |
6475 Dst.sub_451007_scale_image_bicubic( | 6475 /*Dst.sub_451007_scale_image_bicubic( |
6476 pHWLTexture->pPixels, | 6476 pHWLTexture->pPixels, |
6477 pHWLTexture->uWidth, | 6477 pHWLTexture->uWidth, |
6478 pHWLTexture->uHeight, | 6478 pHWLTexture->uHeight, |
6479 pHWLTexture->uWidth, | 6479 pHWLTexture->uWidth, |
6480 (unsigned short *)desc.lpSurface, | 6480 (unsigned short *)desc.lpSurface, |
6481 desc.dwWidth, | 6481 desc.dwWidth, |
6482 desc.dwHeight, | 6482 desc.dwHeight, |
6483 desc.lPitch >> 1, | 6483 desc.lPitch >> 1, |
6484 0, | 6484 0, |
6485 0); | 6485 0);*/ |
6486 ErrD3D(pNextSurf->Unlock(0)); | 6486 ErrD3D(pNextSurf->Unlock(0)); |
6487 //bMipMaps = 0x4D86ACu; | 6487 //bMipMaps = 0x4D86ACu; |
6488 } | 6488 } |
6489 if (FAILED(pNextSurf->GetAttachedSurface(&v19, &pNextSurf))) | 6489 if (FAILED(pNextSurf->GetAttachedSurface(&v19, &pNextSurf))) |
6490 break; | 6490 break; |