mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
Removed the unnecessary Renderer::getWindowFlags() function.
This commit is contained in:
parent
1fc3dfda8c
commit
dde456cbc8
|
@ -172,10 +172,10 @@ namespace Renderer
|
||||||
// The borderless mode seems to behave well and it's almost completely seamless, especially
|
// The borderless mode seems to behave well and it's almost completely seamless, especially
|
||||||
// with a hidden taskbar.
|
// with a hidden taskbar.
|
||||||
if (!userResolution)
|
if (!userResolution)
|
||||||
windowFlags = SDL_WINDOW_BORDERLESS | getWindowFlags();
|
windowFlags = SDL_WINDOW_BORDERLESS | SDL_WINDOW_OPENGL;
|
||||||
else
|
else
|
||||||
// If the resolution has been manually set from the command line, then keep the border.
|
// If the resolution has been manually set from the command line, then keep the border.
|
||||||
windowFlags = getWindowFlags();
|
windowFlags = SDL_WINDOW_OPENGL;
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
// Not sure if this could be a useful setting.
|
// Not sure if this could be a useful setting.
|
||||||
// SDL_SetHint(SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES, "0");
|
// SDL_SetHint(SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES, "0");
|
||||||
|
@ -188,14 +188,14 @@ namespace Renderer
|
||||||
// configured to run in fullscreen mode or switching to its window will not work, but
|
// configured to run in fullscreen mode or switching to its window will not work, but
|
||||||
// apart from that this mode works fine.
|
// apart from that this mode works fine.
|
||||||
if (!userResolution)
|
if (!userResolution)
|
||||||
windowFlags = SDL_WINDOW_BORDERLESS | SDL_WINDOW_ALLOW_HIGHDPI | getWindowFlags();
|
windowFlags = SDL_WINDOW_BORDERLESS | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_OPENGL;
|
||||||
else
|
else
|
||||||
windowFlags = SDL_WINDOW_ALLOW_HIGHDPI | getWindowFlags();
|
windowFlags = SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_OPENGL;
|
||||||
#else
|
#else
|
||||||
if (!userResolution)
|
if (!userResolution)
|
||||||
windowFlags = SDL_WINDOW_FULLSCREEN_DESKTOP | getWindowFlags();
|
windowFlags = SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_OPENGL;
|
||||||
else
|
else
|
||||||
windowFlags = getWindowFlags();
|
windowFlags = SDL_WINDOW_OPENGL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((sdlWindow =
|
if ((sdlWindow =
|
||||||
|
|
|
@ -166,8 +166,6 @@ namespace Renderer
|
||||||
const Renderer::shaderParameters& parameters = shaderParameters(),
|
const Renderer::shaderParameters& parameters = shaderParameters(),
|
||||||
unsigned char* textureRGBA = nullptr);
|
unsigned char* textureRGBA = nullptr);
|
||||||
|
|
||||||
static inline unsigned int getWindowFlags() { return SDL_WINDOW_OPENGL; }
|
|
||||||
|
|
||||||
void setupWindow();
|
void setupWindow();
|
||||||
bool createContext();
|
bool createContext();
|
||||||
void destroyContext();
|
void destroyContext();
|
||||||
|
|
Loading…
Reference in a new issue