mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix 32 bits depth issues during combat.
This commit is contained in:
@@ -294,7 +294,7 @@ inline void CCreatureAnimation::putPixel(
|
|||||||
{
|
{
|
||||||
if(palc!=0)
|
if(palc!=0)
|
||||||
{
|
{
|
||||||
Uint8 * p = (Uint8*)dest->pixels + ftcp*3;
|
Uint8 * p = (Uint8*)dest->pixels + ftcp*dest->format->BytesPerPixel;
|
||||||
if(palc > 7) //normal color
|
if(palc > 7) //normal color
|
||||||
{
|
{
|
||||||
p[0] = color.B;
|
p[0] = color.B;
|
||||||
|
Reference in New Issue
Block a user