1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Fix FIXME comments with outdated referents in Screen.cpp

These FIXME comments are still correct about code duplication, but
they're incorrect about where exactly the original code is after the
original code got moved around. So I've fixed them to refer to the
correct locations.

We really should get around to de-duplicating the code mentioned in
these comments...
This commit is contained in:
Misa 2021-02-15 17:47:48 -08:00 committed by Ethan Lee
parent a3ad7b73f3
commit de26596d54

View file

@ -56,7 +56,7 @@ void Screen::init(const ScreenSettings& settings)
// Uncomment this next line when you need to debug -flibit
// SDL_SetHintWithPriority(SDL_HINT_RENDER_DRIVER, "software", SDL_HINT_OVERRIDE);
// FIXME: m_renderer is also created in Graphics::processVsync()!
// FIXME: m_renderer is also created in resetRendererWorkaround()!
SDL_CreateWindowAndRenderer(
640,
480,
@ -79,7 +79,7 @@ void Screen::init(const ScreenSettings& settings)
0x000000FF,
0xFF000000
);
// ALSO FIXME: This SDL_CreateTexture() is duplicated in Graphics::processVsync()!
// ALSO FIXME: This SDL_CreateTexture() is duplicated twice in this file!
m_screenTexture = SDL_CreateTexture(
m_renderer,
SDL_PIXELFORMAT_ARGB8888,