Bläddra i källkod

Fix 32 bits depth issues during combat.

Frank Zago 16 år sedan
förälder
incheckning
bc506bbc77
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      client/CCreatureAnimation.cpp

+ 1 - 1
client/CCreatureAnimation.cpp

@@ -294,7 +294,7 @@ inline void CCreatureAnimation::putPixel(
 {	
     if(palc!=0)
 	{
-		Uint8 * p = (Uint8*)dest->pixels + ftcp*3;
+		Uint8 * p = (Uint8*)dest->pixels + ftcp*dest->format->BytesPerPixel;
 		if(palc > 7) //normal color
 		{
 			p[0] = color.B;