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:
parent
f1bb6b999c
commit
466cdb9d2b
@ -96,7 +96,7 @@ void CPicture::showAll(Canvas & to)
|
||||
}
|
||||
}
|
||||
|
||||
void CPicture::setAlpha(int value)
|
||||
void CPicture::setAlpha(uint8_t value)
|
||||
{
|
||||
bg->setAlpha(value);
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user