Gleb Mazovetskiy
75222ccef8
Overhaul dependency options
...
Changes how dependency options are handled and moves them out of
`CMakeLists.txt`.
Major changes:
1. The static default now takes `TARGET_SUPPORTS_SHARED_LIBS` into account
2. The `DIST` setting no longer affects the static default.
3. The static option is now visible for system dependencies as well.
(it was previously hidden by `cmake_dependent_option`).
4. The auto-detection mechanism for `libfmt` and `SDL_image` only
applies if the setting has not been set.
5. SDL2 on Android is now also linked statically,
resulting in a 1.1 MiB smaller APK.
When using non-system dependencies, the default should always be static,
as there are 2 main use cases for these:
1. Dependencies that we must currently vendor because our forks have
significant changes that are not yet merged/released upstream.
2. Platforms that have no system packages, such as Android and iOS.
In both cases, static linking is the most appropriate default.
4 years ago
qndel
be0b79f9f5
Add IsWallSpell helper
4 years ago
staphen
f897f5fd92
Resize PalSurface when resizing the game window
4 years ago
Anders Jenbo
28ad032a2f
🐛 [gamepad] Fix casting lightningwalls
...
Fixes #3694
4 years ago
Andrew James
a1a64ef32e
fix negated check in SyncGetItem
...
I missed this when resolving merge conflicts :/
4 years ago
obligaron
96da9e8f34
options.h: remove redundant virtual
4 years ago
Vladimir Olteanu
819271489d
SDL1: Don't destroy surface in SDL_DestroyWindow
4 years ago
JBerg
f31258400a
[ios] Expose app's data
4 years ago
Anders Jenbo
654c53c65e
[ios] Disable hardware cursor
4 years ago
Anders Jenbo
d9d72fbbc7
[ios] Enable high resolution support
4 years ago
Anders Jenbo
c38e54a653
Update options.h
4 years ago
obligaron
d17c689077
Item highlighting: don't change cursor when a repeated action is requested (LastMouseButtonAction != None)
4 years ago
Anders Jenbo
10c5cbab9f
Fix and clen up macOS build
4 years ago
ephphatha
8d6a9a1d75
Use emplace_back when constructing pairs for language list
4 years ago
qndel
115e8ad0ff
ShownMenuTyp -> ShownMenuType
4 years ago
Gleb Mazovetskiy
0f924528ba
macOS/iOS: Add resources to the bundle
4 years ago
Anders Jenbo
d3a7c36d1d
Correct DPI on devices that apply extra scaling
4 years ago
obligaron
9f478a5851
Settingsmenu: Add list browsing
4 years ago
qndel
82a5b6315c
fix typo 'prefered' ( #3677 )
4 years ago
Anders Jenbo
157570a1f2
Handle screen orientation
4 years ago
obligaron
2e5a488d5f
Add OptionEntry for graphics
4 years ago
obligaron
eb7b9d7054
Introduce ResizeWindow()
4 years ago
obligaron
b5aab383d9
Introduce ReinitializeRenderer() and GetPreferedWindowSize()
4 years ago
Licaon_Kter
106f04a722
Fix typo for Romanian
4 years ago
Bubio
cef27299bf
Mark text for translation
4 years ago
Vladimir Olteanu
861fb99e9d
Quick cast
4 years ago
obligaron
8a235186f2
Settingsmenu: Clean up UI-Resources before switching options that require RecreateUI
4 years ago
obligaron
db392c84b0
Add OptionEntry Shareware and remove specials from settingsmenu
4 years ago
obligaron
b5ab9758d0
Replace gbSpawned with gbIsSpawn
4 years ago
obligaron
88ffa9f98a
Options: Move Diablo/Hellfire option to StartUp and integrate in Settings Dialog
4 years ago
obligaron
20fbd46886
Add OptionEntryFlags::NeedDiabloMpq/NeedHellfireMpq
4 years ago
ephphatha
680281e76c
Add support for older versions of windows
4 years ago
ephphatha
68f3270086
Try load the translation in the users language on windows
4 years ago
Gleb Mazovetskiy
e07c9eee03
Fix chat message overlap in CJK
4 years ago
Gleb Mazovetskiy
1b8939d70c
Safer chat message handling
4 years ago
obligaron
945ee04f62
Add OptionEntry Language
4 years ago
obligaron
b3740012b0
Add init_language_archives() to reinitalize lang_mpq
4 years ago
obligaron
0ac065dbaa
Make LanguageInitialize() reentry capable
4 years ago
obligaron
ae826d922f
Add OptionEntryFlags::RecreateUI
4 years ago
obligaron
8fc2fcd9e9
Move Intro Options to StartUp-Section and add a "Once"-Option
4 years ago
obligaron
629f7277b1
Add OptionEntryEnum::SetValue
4 years ago
obligaron
bcc20a2c90
Allow to customize shown splash in diablo.ini
4 years ago
Gleb Mazovetskiy
868289dc17
Add missing <cstring> includes
4 years ago
Gleb Mazovetskiy
37c7a2237b
.clang-format: Remove duplicate SortIncludes entry
4 years ago
obligaron
16253cafad
Move OptionEntry::operator*() to header
4 years ago
Gleb Mazovetskiy
95988ae4d8
help.cpp: Fix `-Wunused-const-variable`
...
Source/help.cpp:102:15: warning: unused variable 'ContentPaddingTop' [-Wunused-const-variable]
Source/help.cpp:103:15: warning: unused variable 'ContentOuterHeight' [-Wunused-const-variable]
4 years ago
Gleb Mazovetskiy
3ad49d59a6
selhero.cpp: Fix `-Wpessimizing-move`
...
Source/DiabloUI/selhero.cpp:488:27: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
4 years ago
Gleb Mazovetskiy
e74cb8388f
Settings menu: Set line height for description
...
Fixes #3603
4 years ago
Bubio
52203cece4
Fixed incorrect description of Show FPS and FPS Limiter option
4 years ago
Bubio
6a087ce350
Fix long translations causing the options menu to crash.
4 years ago