mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-16 08:11:00 +02:00
Fixed Linear_Scale_To_Linear not handling transparent pixels.
This commit is contained in:
@@ -1882,7 +1882,8 @@ void Nearest_CopyImage(byte* source, int sourceX, int sourceY, int sourceWidth,
|
||||
int destPos = (destWidth * (_y + (destY))) + (_x + (destX));
|
||||
int sourcePos = (sourceWidth * (_y + (sourceY))) + (_x + (sourceX));
|
||||
|
||||
dest[destPos] = source[sourcePos];
|
||||
if(source[sourcePos] != 0)
|
||||
dest[destPos] = source[sourcePos];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user