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:
@@ -12,7 +12,9 @@
|
||||
|
||||
#include "SDL_PixelAccess.h"
|
||||
|
||||
#include "../gui/CGuiHandler.h"
|
||||
#include "../render/Graphics.h"
|
||||
#include "../render/IScreenHandler.h"
|
||||
#include "../render/Colors.h"
|
||||
#include "../CMT.h"
|
||||
#include "../xBRZ/xbrz.h"
|
||||
@@ -772,5 +774,10 @@ void CSDL_Ext::getClipRect(SDL_Surface * src, Rect & other)
|
||||
other = CSDL_Ext::fromSDL(rect);
|
||||
}
|
||||
|
||||
int CSDL_Ext::CClipRectGuard::getScalingFactor() const
|
||||
{
|
||||
return GH.screenHandler().getScalingFactor();
|
||||
}
|
||||
|
||||
template SDL_Surface * CSDL_Ext::createSurfaceWithBpp<3>(int, int);
|
||||
template SDL_Surface * CSDL_Ext::createSurfaceWithBpp<4>(int, int);
|
||||
|
||||
Reference in New Issue
Block a user