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
3e190fff
Commit
3e190fff
authored
Sep 21, 2019
by
Florian Oetke
Browse files
fixed clang build (nullptr vs 0 in C-SPI)
parent
a5fe868b
Pipeline
#3402
passed with stage
in 13 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mirrage/graphic/src/settings.cpp
View file @
3e190fff
...
...
@@ -8,7 +8,7 @@ namespace mirrage::graphic {
auto
default_window_settings
(
int
display
)
->
Window_settings
{
#ifdef NDEBUG
auto
mode
=
SDL_DisplayMode
{
SDL_PIXELFORMAT_UNKNOWN
,
0
,
0
,
0
,
0
};
auto
mode
=
SDL_DisplayMode
{
SDL_PIXELFORMAT_UNKNOWN
,
0
,
0
,
0
,
nullptr
};
if
(
SDL_GetDisplayMode
(
display
,
0
,
&
mode
)
==
0
)
{
return
Window_settings
{
mode
.
w
,
mode
.
h
,
display
,
Fullscreen
::
yes
};
}
...
...
Write
Preview
Supports
Markdown
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