1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

client/widgetsImages.{h,cpp}: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char')

This commit is contained in:
Alexander Wilms 2023-10-28 17:34:18 +00:00
parent f1bb6b999c
commit 466cdb9d2b
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ void CPicture::showAll(Canvas & to)
}
}
void CPicture::setAlpha(int value)
void CPicture::setAlpha(uint8_t value)
{
bg->setAlpha(value);
}

View File

@ -56,7 +56,7 @@ public:
/// set alpha value for whole surface. Note: may be messed up if surface is shared
/// 0=transparent, 255=opaque
void setAlpha(int value);
void setAlpha(uint8_t value);
void scaleTo(Point size);
void colorize(PlayerColor player);