1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-17 10:08:29 +02:00

Move filterSubrect off of Screen

It's only used in FlipScreen.
This commit is contained in:
Misa 2021-12-22 20:35:23 -08:00
parent f7b4ac8322
commit 816a0b9eb7
2 changed files with 2 additions and 6 deletions

View File

@ -40,10 +40,6 @@ void Screen::init(const ScreenSettings& settings)
scalingMode = settings.scalingMode;
isFiltered = settings.linearFilter;
vsync = settings.useVsync;
filterSubrect.x = 1;
filterSubrect.y = 1;
filterSubrect.w = 318;
filterSubrect.h = 238;
SDL_SetHintWithPriority(
SDL_HINT_RENDER_SCALE_QUALITY,
@ -303,6 +299,8 @@ const SDL_PixelFormat* Screen::GetFormat(void)
void Screen::FlipScreen(const bool flipmode)
{
static const SDL_Rect filterSubrect = {1, 1, 318, 238};
SDL_RendererFlip flip_flags;
if (flipmode)
{

View File

@ -39,8 +39,6 @@ public:
SDL_Renderer *m_renderer;
SDL_Texture *m_screenTexture;
SDL_Surface* m_screen;
SDL_Rect filterSubrect;
};
#endif /* SCREEN_H */