Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ endif ()

# Build configuration - Linux
if (UNIX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -s")
if (NOT CMAKE_BUILD_TYPE MATCHES "Debug")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -s")
endif ()
set(CMAKE_SHARED_LINKER_FLAGS "--as-needed")
endif ()

Expand Down
2 changes: 1 addition & 1 deletion src/launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static void create_window()
SDL_WINDOWPOS_UNDEFINED,
0,
0,
SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_BORDERLESS
SDL_WINDOW_FULLSCREEN_DESKTOP
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #87 for an explanation of what I think is going on. SDL_WINDOW_BORDERLESS is redundant; SDL_WINDOW_FULLSCREEN_DESKTOP already means borderless.

);
if (window == NULL)
log_fatal("Could not create SDL Window\n%s", SDL_GetError());
Expand Down
Loading