1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Implement selection of upscaling filter in launcher

This commit is contained in:
Ivan Savenko
2024-08-03 20:14:51 +00:00
parent f29a687234
commit d6059b044d
11 changed files with 173 additions and 32 deletions

View File

@@ -13,10 +13,13 @@
#include "SDLImage.h"
#include "ImageScaled.h"
#include "../gui/CGuiHandler.h"
#include "../render/CAnimation.h"
#include "../render/CDefFile.h"
#include "../render/Colors.h"
#include "../render/ColorFilter.h"
#include "../render/IScreenHandler.h"
#include "../../lib/json/JsonUtils.h"
#include "../../lib/filesystem/Filesystem.h"
@@ -130,7 +133,7 @@ RenderHandler::AnimationLayoutMap & RenderHandler::getAnimationLayout(const Anim
int RenderHandler::getScalingFactor() const
{
return 2;
return GH.screenHandler().getScalingFactor();
}
std::shared_ptr<IImage> RenderHandler::createImageReference(const ImageLocator & locator, std::shared_ptr<ISharedImage> input, EImageBlitMode mode)