diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-17 14:47:14 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-17 14:47:14 +0300 |
commit | eebca1a6f58a72faf38029aa687854feccf5b865 (patch) | |
tree | d8c028307cb8dbe8786437c8fc60fb5d5e9b4695 | |
parent | 19a0d3cbb7ca5b12057b195051de4ae8000c7a32 (diff) |
Changed default of ENABLE_RESIZE_DRAW to ON
Resize drawing seems to work better on many platforms so default to ON.
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 385703d9..c7b30719 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -28,6 +28,12 @@ if (IOS) | |||
28 | set (IOS_BUNDLE_VERSION 21.6.15) | 28 | set (IOS_BUNDLE_VERSION 21.6.15) |
29 | endif () | 29 | endif () |
30 | 30 | ||
31 | # Default that depend on environment. | ||
32 | set (DEFAULT_RESIZE_DRAW ON) | ||
33 | if (HAIKU) | ||
34 | set (DEFAULT_RESIZE_DRAW OFF) | ||
35 | endif () | ||
36 | |||
31 | # Build configuration. | 37 | # Build configuration. |
32 | option (ENABLE_CUSTOM_FRAME "Draw a custom window frame (Windows)" OFF) | 38 | option (ENABLE_CUSTOM_FRAME "Draw a custom window frame (Windows)" OFF) |
33 | option (ENABLE_DOWNLOAD_EDIT "Allow changing the Downloads directory" ON) | 39 | option (ENABLE_DOWNLOAD_EDIT "Allow changing the Downloads directory" ON) |
@@ -40,7 +46,7 @@ option (ENABLE_IPC "Use IPC to communicate between running instance | |||
40 | option (ENABLE_KERNING "Enable kerning in font renderer (slower)" ON) | 46 | option (ENABLE_KERNING "Enable kerning in font renderer (slower)" ON) |
41 | option (ENABLE_MPG123 "Use mpg123 for decoding MPEG audio" ON) | 47 | option (ENABLE_MPG123 "Use mpg123 for decoding MPEG audio" ON) |
42 | option (ENABLE_RELATIVE_EMBED "Resources should always be found via relative path" OFF) | 48 | 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) | 49 | option (ENABLE_RESIZE_DRAW "Force window to redraw during resizing" ${DEFAULT_RESIZE_DRAW}) |
44 | option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) | 50 | option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) |
45 | option (ENABLE_WINDOWPOS_FIX "Set position after showing window (workaround for SDL bug)" OFF) | 51 | option (ENABLE_WINDOWPOS_FIX "Set position after showing window (workaround for SDL bug)" OFF) |
46 | option (ENABLE_X11_SWRENDER "Use software rendering under X11" OFF) | 52 | option (ENABLE_X11_SWRENDER "Use software rendering under X11" OFF) |