1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-31 22:19:44 +01:00

Fix mixed indentation in Screen.cpp

Screen.cpp now consistently uses tabs.
This commit is contained in:
Misa 2020-04-02 13:28:12 -07:00 committed by Ethan Lee
parent 4657760c2d
commit ef234d3fc0

View file

@ -19,18 +19,18 @@ extern "C"
Screen::Screen() Screen::Screen()
{ {
m_window = NULL; m_window = NULL;
m_renderer = NULL; m_renderer = NULL;
m_screenTexture = NULL; m_screenTexture = NULL;
m_screen = NULL; m_screen = NULL;
isWindowed = true; isWindowed = true;
stretchMode = 0; stretchMode = 0;
isFiltered = false; isFiltered = false;
filterSubrect.x = 1; filterSubrect.x = 1;
filterSubrect.y = 1; filterSubrect.y = 1;
filterSubrect.w = 318; filterSubrect.w = 318;
filterSubrect.h = 238; filterSubrect.h = 238;
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest"); SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest");
// Uncomment this next line when you need to debug -flibit // Uncomment this next line when you need to debug -flibit
// SDL_SetHintWithPriority(SDL_HINT_RENDER_DRIVER, "software", SDL_HINT_OVERRIDE); // SDL_SetHintWithPriority(SDL_HINT_RENDER_DRIVER, "software", SDL_HINT_OVERRIDE);
@ -84,9 +84,9 @@ Screen::Screen()
240 240
); );
badSignalEffect = false; badSignalEffect = false;
glScreen = true; glScreen = true;
} }
void Screen::ResizeScreen(int x, int y) void Screen::ResizeScreen(int x, int y)
@ -160,30 +160,30 @@ void Screen::GetWindowSize(int* x, int* y)
void Screen::UpdateScreen(SDL_Surface* buffer, SDL_Rect* rect ) void Screen::UpdateScreen(SDL_Surface* buffer, SDL_Rect* rect )
{ {
if((buffer == NULL) && (m_screen == NULL) ) if((buffer == NULL) && (m_screen == NULL) )
{ {
return; return;
} }
if(badSignalEffect) if(badSignalEffect)
{ {
buffer = ApplyFilter(buffer); buffer = ApplyFilter(buffer);
} }
FillRect(m_screen, 0x000); FillRect(m_screen, 0x000);
BlitSurfaceStandard(buffer,NULL,m_screen,rect); BlitSurfaceStandard(buffer,NULL,m_screen,rect);
if(badSignalEffect) if(badSignalEffect)
{ {
SDL_FreeSurface(buffer); SDL_FreeSurface(buffer);
} }
} }
const SDL_PixelFormat* Screen::GetFormat() const SDL_PixelFormat* Screen::GetFormat()
{ {
return m_screen->format; return m_screen->format;
} }
void Screen::FlipScreen() void Screen::FlipScreen()