mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
SDL: Use fullscreen for mobile/GLES.
Also, allow resize for Vulkan outside mobile. Thanks go to hissingshark.
This commit is contained in:
parent
f2a75719d8
commit
78a41980df
@ -23,11 +23,8 @@ int SDLGLGraphicsContext::Init(SDL_Window *&window, int x, int y, int mode, std:
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef USING_GLES2
|
||||
mode |= SDL_WINDOW_OPENGL | SDL_WINDOW_FULLSCREEN;
|
||||
#else
|
||||
mode |= SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE;
|
||||
#endif
|
||||
mode |= SDL_WINDOW_OPENGL;
|
||||
|
||||
SDL_GLContext glContext = nullptr;
|
||||
for (size_t i = 0; i < ARRAY_SIZE(attemptVersions); ++i) {
|
||||
const auto &ver = attemptVersions[i];
|
||||
|
@ -555,6 +555,13 @@ int main(int argc, char *argv[]) {
|
||||
mode |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||
}
|
||||
|
||||
// If we're on mobile, don't try for windowed either.
|
||||
#if defined(USING_GLES2) || defined(MOBILE_DEVICE)
|
||||
mode |= SDL_WINDOW_FULLSCREEN;
|
||||
#else
|
||||
mode |= SDL_WINDOW_RESIZABLE;
|
||||
#endif
|
||||
|
||||
if (mode & SDL_WINDOW_FULLSCREEN_DESKTOP) {
|
||||
pixel_xres = g_DesktopWidth;
|
||||
pixel_yres = g_DesktopHeight;
|
||||
|
Loading…
x
Reference in New Issue
Block a user