|
@@ -405,12 +405,10 @@ void Graphics::RaiseWindow()
|
|
|
SDL_RaiseWindow(impl_->window_);
|
|
SDL_RaiseWindow(impl_->window_);
|
|
|
}
|
|
}
|
|
|
bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless, bool resizable, bool vsync, bool tripleBuffer,
|
|
bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless, bool resizable, bool vsync, bool tripleBuffer,
|
|
|
- int multiSample)
|
|
|
|
|
|
|
+ int multiSample, bool maximize)
|
|
|
{
|
|
{
|
|
|
PROFILE(SetScreenMode);
|
|
PROFILE(SetScreenMode);
|
|
|
|
|
|
|
|
- bool maximize = false;
|
|
|
|
|
-
|
|
|
|
|
// Find out the full screen mode display format (match desktop color depth)
|
|
// Find out the full screen mode display format (match desktop color depth)
|
|
|
SDL_DisplayMode mode;
|
|
SDL_DisplayMode mode;
|
|
|
SDL_GetDesktopDisplayMode(0, &mode);
|
|
SDL_GetDesktopDisplayMode(0, &mode);
|
|
@@ -426,7 +424,6 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- maximize = resizable;
|
|
|
|
|
width = 1024;
|
|
width = 1024;
|
|
|
height = 768;
|
|
height = 768;
|
|
|
}
|
|
}
|
|
@@ -602,7 +599,7 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,
|
|
|
|
|
|
|
|
bool Graphics::SetMode(int width, int height)
|
|
bool Graphics::SetMode(int width, int height)
|
|
|
{
|
|
{
|
|
|
- return SetMode(width, height, fullscreen_, borderless_, resizable_, vsync_, tripleBuffer_, multiSample_);
|
|
|
|
|
|
|
+ return SetMode(width, height, fullscreen_, borderless_, resizable_, vsync_, tripleBuffer_, multiSample_, false);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void Graphics::SetSRGB(bool enable)
|
|
void Graphics::SetSRGB(bool enable)
|
|
@@ -623,7 +620,7 @@ void Graphics::SetOrientations(const String& orientations)
|
|
|
|
|
|
|
|
bool Graphics::ToggleFullscreen()
|
|
bool Graphics::ToggleFullscreen()
|
|
|
{
|
|
{
|
|
|
- return SetMode(width_, height_, !fullscreen_, borderless_, resizable_, vsync_, tripleBuffer_, multiSample_);
|
|
|
|
|
|
|
+ return SetMode(width_, height_, !fullscreen_, borderless_, resizable_, vsync_, tripleBuffer_, multiSample_, false);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void Graphics::Close()
|
|
void Graphics::Close()
|
|
@@ -2771,6 +2768,14 @@ int Graphics::GetMonitorsNumber()
|
|
|
{
|
|
{
|
|
|
return SDL_GetNumVideoDisplays();
|
|
return SDL_GetNumVideoDisplays();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+bool Graphics::GetMaximized()
|
|
|
|
|
+{
|
|
|
|
|
+ if (!impl_->window_)
|
|
|
|
|
+ return false;
|
|
|
|
|
+
|
|
|
|
|
+ return SDL_GetWindowFlags(impl_->window_) & SDL_WINDOW_MAXIMIZED;
|
|
|
|
|
+}
|
|
|
// ATOMIC END
|
|
// ATOMIC END
|
|
|
|
|
|
|
|
}
|
|
}
|