Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Dependencies
Cpp
mirrage
Commits
a5fe868b
Commit
a5fe868b
authored
Sep 21, 2019
by
Florian Oetke
Browse files
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mirrage/graphic/CMakeLists.txt
View file @
a5fe868b
...
...
@@ -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
...
...
src/mirrage/graphic/include/mirrage/graphic/settings.hpp
View file @
a5fe868b
...
...
@@ -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
{};
...
...
src/mirrage/graphic/src/settings.cpp
0 → 100644
View file @
a5fe868b
#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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment