mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Use SDL BlitMode's to speed up image rendering
This commit is contained in:
@@ -69,13 +69,13 @@ bool CAnimation::loadFrame(size_t frame, size_t group)
|
||||
// still here? image is missing
|
||||
|
||||
printError(frame, group, "LoadFrame");
|
||||
images[group][frame] = std::make_shared<SDLImage>("DEFAULT");
|
||||
images[group][frame] = std::make_shared<SDLImage>("DEFAULT", EImageBlitMode::ALPHA);
|
||||
}
|
||||
else //load from separate file
|
||||
{
|
||||
auto img = getFromExtraDef(source[group][frame]["file"].String());
|
||||
if(!img)
|
||||
img = std::make_shared<SDLImage>(source[group][frame]);
|
||||
img = std::make_shared<SDLImage>(source[group][frame], EImageBlitMode::ALPHA);
|
||||
|
||||
images[group][frame] = img;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user