mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Move filterSubrect
off of Screen
It's only used in FlipScreen.
This commit is contained in:
parent
f7b4ac8322
commit
816a0b9eb7
2 changed files with 2 additions and 6 deletions
|
@ -40,10 +40,6 @@ void Screen::init(const ScreenSettings& settings)
|
||||||
scalingMode = settings.scalingMode;
|
scalingMode = settings.scalingMode;
|
||||||
isFiltered = settings.linearFilter;
|
isFiltered = settings.linearFilter;
|
||||||
vsync = settings.useVsync;
|
vsync = settings.useVsync;
|
||||||
filterSubrect.x = 1;
|
|
||||||
filterSubrect.y = 1;
|
|
||||||
filterSubrect.w = 318;
|
|
||||||
filterSubrect.h = 238;
|
|
||||||
|
|
||||||
SDL_SetHintWithPriority(
|
SDL_SetHintWithPriority(
|
||||||
SDL_HINT_RENDER_SCALE_QUALITY,
|
SDL_HINT_RENDER_SCALE_QUALITY,
|
||||||
|
@ -303,6 +299,8 @@ const SDL_PixelFormat* Screen::GetFormat(void)
|
||||||
|
|
||||||
void Screen::FlipScreen(const bool flipmode)
|
void Screen::FlipScreen(const bool flipmode)
|
||||||
{
|
{
|
||||||
|
static const SDL_Rect filterSubrect = {1, 1, 318, 238};
|
||||||
|
|
||||||
SDL_RendererFlip flip_flags;
|
SDL_RendererFlip flip_flags;
|
||||||
if (flipmode)
|
if (flipmode)
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,8 +39,6 @@ public:
|
||||||
SDL_Renderer *m_renderer;
|
SDL_Renderer *m_renderer;
|
||||||
SDL_Texture *m_screenTexture;
|
SDL_Texture *m_screenTexture;
|
||||||
SDL_Surface* m_screen;
|
SDL_Surface* m_screen;
|
||||||
|
|
||||||
SDL_Rect filterSubrect;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* SCREEN_H */
|
#endif /* SCREEN_H */
|
||||||
|
|
Loading…
Reference in a new issue