Mercurial > mm7
comparison Render.cpp @ 1584:cff02d7d3460
Merge
author | Nomad |
---|---|
date | Tue, 10 Sep 2013 21:08:06 +0200 |
parents | 75fafd8ced59 56cc81b1ed49 |
children | c24e91e9a108 8094f1706b1f |
comparison
equal
deleted
inserted
replaced
1583:75fafd8ced59 | 1584:cff02d7d3460 |
---|---|
6449 bMipMaps, | 6449 bMipMaps, |
6450 uMinDeviceTextureDim) ) | 6450 uMinDeviceTextureDim) ) |
6451 Error("HiScreen16::LoadTexture - D3Drend->CreateTexture() failed: %x", 0); | 6451 Error("HiScreen16::LoadTexture - D3Drend->CreateTexture() failed: %x", 0); |
6452 //v10 = *pOutSurface; | 6452 //v10 = *pOutSurface; |
6453 //v11 = 0; | 6453 //v11 = 0; |
6454 if ( bMipMaps ) | 6454 if (bMipMaps) |
6455 { | 6455 { |
6456 Dst._450DDE(); | 6456 Dst._450DDE(); |
6457 //v20 = 0; | 6457 //v20 = 0; |
6458 Dst._450DF1(&stru_4EFCBC, &stru_4EFCBC); | 6458 Dst._450DF1(&stru_4EFCBC, &stru_4EFCBC); |
6459 | 6459 |
6468 memset(&desc, 0, sizeof(DDSURFACEDESC2)); | 6468 memset(&desc, 0, sizeof(DDSURFACEDESC2)); |
6469 desc.dwSize = sizeof(DDSURFACEDESC2); | 6469 desc.dwSize = sizeof(DDSURFACEDESC2); |
6470 | 6470 |
6471 if ( LockSurface_DDraw4(pNextSurf, &desc, DDLOCK_WAIT | DDLOCK_WRITEONLY) ) | 6471 if ( LockSurface_DDraw4(pNextSurf, &desc, DDLOCK_WAIT | DDLOCK_WRITEONLY) ) |
6472 { | 6472 { |
6473 Dst.sub_451007_scale_image_bicubic( | 6473 /*Dst.sub_451007_scale_image_bicubic( |
6474 pHWLTexture->pPixels, | 6474 pHWLTexture->pPixels, |
6475 pHWLTexture->uWidth, | 6475 pHWLTexture->uWidth, |
6476 pHWLTexture->uHeight, | 6476 pHWLTexture->uHeight, |
6477 pHWLTexture->uWidth, | 6477 pHWLTexture->uWidth, |
6478 (unsigned short *)desc.lpSurface, | 6478 (unsigned short *)desc.lpSurface, |
6479 desc.dwWidth, | 6479 desc.dwWidth, |
6480 desc.dwHeight, | 6480 desc.dwHeight, |
6481 desc.lPitch >> 1, | 6481 desc.lPitch >> 1, |
6482 0, | 6482 0, |
6483 0); | 6483 0);*/ |
6484 ErrD3D(pNextSurf->Unlock(0)); | 6484 ErrD3D(pNextSurf->Unlock(0)); |
6485 //bMipMaps = 0x4D86ACu; | 6485 //bMipMaps = 0x4D86ACu; |
6486 } | 6486 } |
6487 if (FAILED(pNextSurf->GetAttachedSurface(&v19, &pNextSurf))) | 6487 if (FAILED(pNextSurf->GetAttachedSurface(&v19, &pNextSurf))) |
6488 break; | 6488 break; |