mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
New feature: exploration assignment indicates items on the map
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=360244&#msg_360244 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8815 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -366,7 +366,7 @@ void PixelDraw( BOOLEAN fClip, INT32 xp, INT32 yp, INT16 sColor, UINT8 *pScreen
|
||||
}
|
||||
|
||||
// Flugente: alter the colour of existing pixels instead of fully replacing the colour
|
||||
void PixelAlterColour(BOOLEAN fClip, INT32 xp, INT32 yp, UINT8 col1, UINT8 col2, UINT8 *pScreen)
|
||||
void PixelAlterColour(BOOLEAN fClip, INT32 xp, INT32 yp, INT16 sColor, UINT8 *pScreen)
|
||||
{
|
||||
if ( fClip && !ClipPoint( xp, yp ) )
|
||||
return;
|
||||
@@ -374,6 +374,9 @@ void PixelAlterColour(BOOLEAN fClip, INT32 xp, INT32 yp, UINT8 col1, UINT8 col2,
|
||||
// point to the bitmap address first pixel to draw
|
||||
pScreen += yp * giImageWidth + xp * 2;
|
||||
|
||||
INT8 col2 = sColor >> 8;
|
||||
INT8 col1 = sColor & 0x00ff;
|
||||
|
||||
pScreen[0] |= col1;
|
||||
pScreen[1] |= col2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user