1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

screen texture and main window are now private members of screen handler

This commit is contained in:
Ivan Savenko
2025-02-10 18:00:42 +00:00
parent eb7587c000
commit 5a9dbc03a8
5 changed files with 7 additions and 11 deletions

View File

@@ -44,7 +44,9 @@ enum class EUpscalingFilter
/// This class is responsible for management of game window and its main rendering surface
class ScreenHandler final : public IScreenHandler
{
SDL_Surface * screen = nullptr; //main screen surface
SDL_Window * mainWindow = nullptr;
SDL_Texture * screenTexture = nullptr;
SDL_Surface * screen = nullptr;
EUpscalingFilter upscalingFilter = EUpscalingFilter::AUTO;
@@ -118,7 +120,7 @@ public:
Canvas getScreenCanvas() const final;
void updateScreenTexture() final;
void presetScreenTexture() final;
void presentScreenTexture() final;
std::vector<Point> getSupportedResolutions() const final;
std::vector<Point> getSupportedResolutions(int displayIndex) const;