Fixed Linear_Scale_To_Linear not handling transparent pixels.

This commit is contained in:
Justin Marshall
2020-06-06 17:28:50 -07:00
parent d5698bc9f2
commit 4ae1728633
+2 -1
View File
@@ -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];
}
}
}