mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Refactoring of CPicture class to improve encapsulation
This commit is contained in:
@ -76,11 +76,7 @@ CMenuScreen::CMenuScreen(const JsonNode & configNode)
|
||||
|
||||
background = std::make_shared<CPicture>(config["background"].String());
|
||||
if(config["scalable"].Bool())
|
||||
{
|
||||
if(background->bg->format->palette)
|
||||
background->convertToScreenBPP();
|
||||
background->scaleTo(Point(screen->w, screen->h));
|
||||
}
|
||||
|
||||
pos = background->center();
|
||||
|
||||
|
Reference in New Issue
Block a user