Commit 3e190fff authored by Florian Oetke's avatar 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
...@@ -8,7 +8,7 @@ namespace mirrage::graphic { ...@@ -8,7 +8,7 @@ namespace mirrage::graphic {
auto default_window_settings(int display) -> Window_settings auto default_window_settings(int display) -> Window_settings
{ {
#ifdef NDEBUG #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) { if(SDL_GetDisplayMode(display, 0, &mode) == 0) {
return Window_settings{mode.w, mode.h, display, Fullscreen::yes}; return Window_settings{mode.w, mode.h, display, Fullscreen::yes};
} }
......
Supports Markdown
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