diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f00ba0..45f1fe2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,9 @@ IF(CMAKE_BUILD_TYPE STREQUAL "Debug") SET(LINK_FLAGS "${debug_linker}") SET(optimize_flags "-Og -g3 -ffunction-sections -fdata-sections") ADD_DEFINITIONS(-DDEBUG) + IF(WIN32) + SET(win_console "-mconsole") + ENDIF() ELSE() SET(optimize_flags "-O3 -ffast-math") ENDIF() @@ -61,7 +64,7 @@ SET(warn_flags "\ # Put all the flags we have gathered SET(CMAKE_CXX_FLAGS - "${arch_flags} ${optimize_flags} ${warn_flags} ${win_flags}" + "${arch_flags} ${optimize_flags} ${warn_flags} ${win_flags} ${win_console}" ) # The main project files @@ -110,7 +113,7 @@ ADD_EXECUTABLE(HomdEngine ) IF(WIN32) - SET(win32_link -mwindows, -mconsole) + SET(win32_link -mwindows) ENDIF() TARGET_LINK_LIBRARIES(HomdEngine diff --git a/src/window/window.h b/src/window/window.h index e2b110c..dfb0f6f 100644 --- a/src/window/window.h +++ b/src/window/window.h @@ -10,8 +10,9 @@ #include #define SDL_FLAGS SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER -#define SDL_WINDOW_FLAGS \ - SDL_WINDOW_OPENGL | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_MAXIMIZED +#define SDL_WINDOW_FLAGS \ + SDL_WINDOW_OPENGL | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_MAXIMIZED | \ + SDL_WINDOW_RESIZABLE #define WINDOW_TITLE "Homd Engine" #define WINDOW_INITIAL_W 960