mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Merged New Inventory Project into main branch
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -29,7 +29,7 @@ BOOLEAN QuantizeImage( UINT8 *pDest, UINT8 *pSrc, INT16 sWidth, INT16 sHeight, S
|
||||
|
||||
sNumColors = q.GetColorCount();
|
||||
|
||||
memset( pPalette, 0, sizeof( SGPPaletteEntry ) * 256 );
|
||||
memset( pPalette, 0, sizeof( SGPPaletteEntry ) * 256 );
|
||||
|
||||
q.GetColorTable( (RGBQUAD*)pPalette );
|
||||
|
||||
@@ -81,7 +81,7 @@ void MapPalette( UINT8 *pDest, UINT8 *pSrc, INT16 sWidth, INT16 sHeight, INT16 s
|
||||
{
|
||||
dLowestDist = dCubeDist;
|
||||
bBest = cnt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Now we have the lowest value
|
||||
@@ -93,4 +93,4 @@ void MapPalette( UINT8 *pDest, UINT8 *pSrc, INT16 sWidth, INT16 sHeight, INT16 s
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user