comparison mm7_1.cpp @ 52:0f4ed4f0f472

BLV minimap: 1/3
author Nomad
date Wed, 24 Oct 2012 17:02:44 +0200
parents 4211cceb3813
children 41cbaabde2cb
comparison
equal deleted inserted replaced
51:4211cceb3813 52:0f4ed4f0f472
3099 v106.uScreenSpaceY = v115 + v12 + *(short *)(v11 + 18); 3099 v106.uScreenSpaceY = v115 + v12 + *(short *)(v11 + 18);
3100 v106.pPalette = PaletteManager::Get_Dark_or_Red_LUT(v10->uPaletteIndex, 0, 1); 3100 v106.pPalette = PaletteManager::Get_Dark_or_Red_LUT(v10->uPaletteIndex, 0, 1);
3101 v106.sZValue = 0; 3101 v106.sZValue = 0;
3102 v106.uFlags = 0; 3102 v106.uFlags = 0;
3103 pRenderer->Clip_v2(0, 0, 0x27Fu, 0x1DFu); 3103 pRenderer->Clip_v2(0, 0, 0x27Fu, 0x1DFu);
3104 pRenderer->FillRect(v106.uViewportX - 1, v106.uViewportY - 1, v106.uViewportX + 129, v106.uViewportY - 1, a5); 3104 pRenderer->Line2D(v106.uViewportX - 1, v106.uViewportY - 1, v106.uViewportX + 129, v106.uViewportY - 1, a5);
3105 pRenderer->FillRect( 3105 pRenderer->Line2D(
3106 v106.uViewportX + 129, 3106 v106.uViewportX + 129,
3107 v106.uViewportY - 1, 3107 v106.uViewportY - 1,
3108 v106.uViewportX + 129, 3108 v106.uViewportX + 129,
3109 v106.uViewportW + 1, 3109 v106.uViewportW + 1,
3110 a5); 3110 a5);
3111 pRenderer->FillRect(v106.uViewportX + 129, v106.uViewportW + 1, v106.uViewportX - 1, v106.uViewportW + 1, a5); 3111 pRenderer->Line2D(v106.uViewportX + 129, v106.uViewportW + 1, v106.uViewportX - 1, v106.uViewportW + 1, a5);
3112 pRenderer->FillRect(v106.uViewportX - 1, v106.uViewportW + 1, v106.uViewportX - 1, v106.uViewportY - 1, a5); 3112 pRenderer->Line2D(v106.uViewportX - 1, v106.uViewportW + 1, v106.uViewportX - 1, v106.uViewportY - 1, a5);
3113 if ( pRenderer->pRenderD3D ) 3113 if ( pRenderer->pRenderD3D )
3114 { 3114 {
3115 v13 = &pSprites_LOD->pHardwareSprites[v10->pHwSpriteIDs[0]]; 3115 v13 = &pSprites_LOD->pHardwareSprites[v10->pHwSpriteIDs[0]];
3116 v106.uScreenSpaceY = v115 + v106.uViewportY + v13->uBufferHeight; 3116 v106.uScreenSpaceY = v115 + v106.uViewportY + v13->uBufferHeight;
3117 v222 = (IDirectDrawSurface *)v13->pTextureSurface; 3117 v222 = (IDirectDrawSurface *)v13->pTextureSurface;
3148 } 3148 }
3149 if ( (signed int)v116 > (signed int)v106.uViewportZ ) 3149 if ( (signed int)v116 > (signed int)v106.uViewportZ )
3150 v116 = v106.uViewportZ; 3150 v116 = v106.uViewportZ;
3151 if ( v119 > (signed int)v106.uViewportW ) 3151 if ( v119 > (signed int)v106.uViewportW )
3152 v119 = v106.uViewportW; 3152 v119 = v106.uViewportW;
3153 pRenderer->FillRect2( 3153 pRenderer->FillRectFast(
3154 0,
3155 v106.uViewportX, 3154 v106.uViewportX,
3156 v106.uViewportY, 3155 v106.uViewportY,
3157 v106.uViewportZ - v106.uViewportX, 3156 v106.uViewportZ - v106.uViewportX,
3158 v106.uViewportW - v106.uViewportY, 3157 v106.uViewportW - v106.uViewportY,
3159 LOWORD(pRenderer->uTargetBMask) | LOWORD(pRenderer->uTargetGMask)); 3158 pRenderer->uTargetBMask | pRenderer->uTargetGMask);
3160 pRenderer->FillRect2( 3159 pRenderer->FillRectFast(
3161 0,
3162 v106.uViewportX, 3160 v106.uViewportX,
3163 v106.uViewportY, 3161 v106.uViewportY,
3164 v106.uViewportZ - v106.uViewportX, 3162 v106.uViewportZ - v106.uViewportX,
3165 v106.uViewportW - v106.uViewportY, 3163 v106.uViewportW - v106.uViewportY,
3166 LOWORD(pRenderer->uTargetBMask) | LOWORD(pRenderer->uTargetGMask)); 3164 pRenderer->uTargetBMask | pRenderer->uTargetGMask);
3167 v84.left = v106.uViewportX; 3165 v84.left = v106.uViewportX;
3168 v84.top = v106.uViewportY; 3166 v84.top = v106.uViewportY;
3169 v84.right = v106.uViewportZ; 3167 v84.right = v106.uViewportZ;
3170 v84.bottom = v106.uViewportW; 3168 v84.bottom = v106.uViewportW;
3171 ErrD3D(pRenderer->pBackBuffer4->Blt(&v84, 0, 0, 16778240u, &Dst)); 3169 ErrD3D(pRenderer->pBackBuffer4->Blt(&v84, 0, 0, 16778240u, &Dst));
3267 goto LABEL_51; 3265 goto LABEL_51;
3268 } 3266 }
3269 } 3267 }
3270 else 3268 else
3271 { 3269 {
3272 pRenderer->FillRect2( 3270 pRenderer->FillRectFast(
3273 0,
3274 v106.uViewportX, 3271 v106.uViewportX,
3275 v106.uViewportY, 3272 v106.uViewportY,
3276 v106.uViewportZ - v106.uViewportX, 3273 v106.uViewportZ - v106.uViewportX,
3277 v106.uViewportW - v106.uViewportY, 3274 v106.uViewportW - v106.uViewportY,
3278 0); 3275 0);