Commit a5fe868b authored by Florian Oetke's avatar Florian Oetke

changed initial window settings to fullscreen at native resolution for release builds

parent 948cec53
Pipeline #3398 failed with stage
in 11 minutes and 50 seconds
......@@ -23,6 +23,7 @@ add_library(mirrage_graphic STATIC
src/render_pass.cpp
src/streamed_buffer.cpp
src/swapchain.cpp
src/settings.cpp
src/texture.cpp
src/transfer_manager.cpp
src/vk_wrapper.cpp
......
......@@ -32,10 +32,7 @@ namespace mirrage::graphic {
};
inline auto default_window_settings(int display = 0) -> Window_settings
{
return Window_settings{1280, 720, display, Fullscreen::no};
}
extern auto default_window_settings(int display = 0) -> Window_settings;
inline auto default_settings(int display = 0) -> Graphics_settings
{
auto settings = Graphics_settings{};
......
#include <mirrage/graphic/settings.hpp>
#include <SDL.h>
namespace mirrage::graphic {
auto default_window_settings(int display) -> Window_settings
{
#ifdef NDEBUG
auto mode = SDL_DisplayMode{SDL_PIXELFORMAT_UNKNOWN, 0, 0, 0, 0};
if(SDL_GetDisplayMode(display, 0, &mode) == 0) {
return Window_settings{mode.w, mode.h, display, Fullscreen::yes};
}
#endif
return Window_settings{1280, 720, display, Fullscreen::no};
}
} // namespace mirrage::graphic
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment