mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
vcmi: use std::optional
This commit is contained in:
@@ -85,7 +85,7 @@ void CPicture::show(SDL_Surface * to)
|
||||
void CPicture::showAll(SDL_Surface * to)
|
||||
{
|
||||
if(bg && visible)
|
||||
bg->draw(to, pos.x, pos.y, srcRect.get_ptr());
|
||||
bg->draw(to, pos.x, pos.y, srcRect.has_value() ? &srcRect.value() : nullptr);
|
||||
}
|
||||
|
||||
void CPicture::setAlpha(int value)
|
||||
|
||||
Reference in New Issue
Block a user