diff options
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/app.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c9037986..385703d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -18,7 +18,7 @@ | |||
18 | cmake_minimum_required (VERSION 3.9) | 18 | cmake_minimum_required (VERSION 3.9) |
19 | 19 | ||
20 | project (Lagrange | 20 | project (Lagrange |
21 | VERSION 1.6.3 | 21 | VERSION 1.6.4 |
22 | DESCRIPTION "A Beautiful Gemini Client" | 22 | DESCRIPTION "A Beautiful Gemini Client" |
23 | LANGUAGES C | 23 | LANGUAGES C |
24 | ) | 24 | ) |
@@ -40,6 +40,7 @@ option (ENABLE_IPC "Use IPC to communicate between running instance | |||
40 | option (ENABLE_KERNING "Enable kerning in font renderer (slower)" ON) | 40 | option (ENABLE_KERNING "Enable kerning in font renderer (slower)" ON) |
41 | option (ENABLE_MPG123 "Use mpg123 for decoding MPEG audio" ON) | 41 | option (ENABLE_MPG123 "Use mpg123 for decoding MPEG audio" ON) |
42 | option (ENABLE_RELATIVE_EMBED "Resources should always be found via relative path" OFF) | 42 | option (ENABLE_RELATIVE_EMBED "Resources should always be found via relative path" OFF) |
43 | option (ENABLE_RESIZE_DRAW "Force window to redraw during resizing" OFF) | ||
43 | option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) | 44 | option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) |
44 | option (ENABLE_WINDOWPOS_FIX "Set position after showing window (workaround for SDL bug)" OFF) | 45 | option (ENABLE_WINDOWPOS_FIX "Set position after showing window (workaround for SDL bug)" OFF) |
45 | option (ENABLE_X11_SWRENDER "Use software rendering under X11" OFF) | 46 | option (ENABLE_X11_SWRENDER "Use software rendering under X11" OFF) |
@@ -315,6 +316,9 @@ endif () | |||
315 | if (ENABLE_CUSTOM_FRAME AND MSYS) | 316 | if (ENABLE_CUSTOM_FRAME AND MSYS) |
316 | target_compile_definitions (app PUBLIC LAGRANGE_ENABLE_CUSTOM_FRAME=1) | 317 | target_compile_definitions (app PUBLIC LAGRANGE_ENABLE_CUSTOM_FRAME=1) |
317 | endif () | 318 | endif () |
319 | if (ENABLE_RESIZE_DRAW) | ||
320 | target_compile_definitions (app PUBLIC LAGRANGE_ENABLE_RESIZE_DRAW=1) | ||
321 | endif () | ||
318 | target_link_libraries (app PUBLIC the_Foundation::the_Foundation) | 322 | target_link_libraries (app PUBLIC the_Foundation::the_Foundation) |
319 | target_link_libraries (app PUBLIC ${SDL2_LDFLAGS}) | 323 | target_link_libraries (app PUBLIC ${SDL2_LDFLAGS}) |
320 | if (ENABLE_HARFBUZZ AND HARFBUZZ_FOUND) | 324 | if (ENABLE_HARFBUZZ AND HARFBUZZ_FOUND) |
@@ -1351,7 +1351,7 @@ static int run_App_(iApp *d) { | |||
1351 | } | 1351 | } |
1352 | d->isRunning = iTrue; | 1352 | d->isRunning = iTrue; |
1353 | SDL_EventState(SDL_DROPFILE, SDL_ENABLE); /* open files via drag'n'drop */ | 1353 | SDL_EventState(SDL_DROPFILE, SDL_ENABLE); /* open files via drag'n'drop */ |
1354 | #if defined (iPlatformDesktop) | 1354 | #if defined (LAGRANGE_ENABLE_RESIZE_DRAW) |
1355 | SDL_AddEventWatch(resizeWatcher_, d); /* redraw window during resizing */ | 1355 | SDL_AddEventWatch(resizeWatcher_, d); /* redraw window during resizing */ |
1356 | #endif | 1356 | #endif |
1357 | while (d->isRunning) { | 1357 | while (d->isRunning) { |