Gleb Mazovetskiy
43bc08bd63
Hardware Cursor: Fall back to software on failure
5 years ago
Gleb Mazovetskiy
523d838bd4
Hardware Cursor: Use item hotpoint
...
For a hardware item cursor, set the hotpoint to the center
instead of manually setting the cursor position.
5 years ago
Gleb Mazovetskiy
c875c0c213
Optimize FadeIn/Out palette updates
...
Only call `SetFadeLevel` when needed.
5 years ago
Gleb Mazovetskiy
f9d20b44d6
🎉 Hardware cursor (SDL2-only)
...
Disabled by default because of these known issues:
1. When clicking on inventory item, it briefly appears a bit shifted (in the wrong coordinates).
This issue can happen with software cursor as well, but is a lot more
obvious with the hardware cursor.
2. Cursor is scaled with nearest-neighbour scaling, which may look a bit different from
how the rest of the graphics are scaled.
See also previous attempt: https://github.com/diasurgical/devilutionX/pull/955 by @viciious
Co-authored-by: Victor Luchits <vluchits@gmail.com>
5 years ago
obligaron
b5ad92eb2c
Convert _mAnimData to CelSprite
5 years ago
obligaron
7e594db683
Simplify SyncMonsterAnim
5 years ago
obligaron
40faa6e186
Introduce MonsterStruct::CheckStandAnimationIsLoaded
5 years ago
obligaron
ceda0b46ce
Introduce InitDeadAnimationFromMonster
5 years ago
obligaron
ab9a300393
Introduce InitMissileAnimationFromMonster
5 years ago
Anders Jenbo
f99ef2c195
A couple of clean ups suggested by Android Studio/Clang Tidy
5 years ago
Gleb Mazovetskiy
e9544c2fdc
♻️ Cleanup `DrawCursor`
...
1. Only copy the outline if the cursor is an item.
2. Deduplicate clipping math.
5 years ago
Gleb Mazovetskiy
e7b105b6ed
🐞 Fix off-by-one in `DrawCursor`
...
The correct size is +2px for the outline, because the outline is on both
sides.
Fixes #2179
5 years ago
Gleb Mazovetskiy
432fdacd81
Clip `InvDrawSlotBack` draw call
5 years ago
Gleb Mazovetskiy
9c2677c368
DrawCutscene: Clip progress bar draw call
5 years ago
Gleb Mazovetskiy
982260d94e
Clip control.cpp draw calls
...
No longer crashes there when running at a resolution smaller than
640x480
5 years ago
Gleb Mazovetskiy
e6a432bc5e
Add `MakeSdlRect` helper function for -Wnarrowing
5 years ago
Epifanov Ivan
b16d3e8b54
Re-enable graphical settings on PSVita ( #2175 )
5 years ago
Anders Jenbo
1c13f283cf
Fix Clang warning
5 years ago
Anders Jenbo
0227519267
Enable mouse emulation for Android
...
As a temporarly solution untill we implement a proper virtual controller
5 years ago
Anders Jenbo
e2ead2cc5e
Port engine to Android
...
Set the font path for Android
Do not check for FileExists on CharisSILB.ttf for Android, FileExists
will always fail as it doesn't detect files located in the APK
port
5 years ago
obligaron
660f8d2f43
Ensure AnimationInfo is reset when a game is loaded
5 years ago
Juliano Leal Goncalves
d47fc924f3
♻️ Use '_item_indexes' instead of 'int' for 'ItemStruct.IDidx' field
5 years ago
Juliano Leal Goncalves
1cb2de47c4
🏷️ Expand underlying type of '_item_indexes' to 'uint16'
...
This matches existing usages which rely on constant value 0xFFFF when unpacking items.
5 years ago
qndel
6931c438d3
fix typo ( #2150 )
5 years ago
qndel
70bf808512
change 1 to bool
5 years ago
Anders Jenbo
cd1d1242b6
Reset all players on game start
5 years ago
ephphatha
0c99ae0206
Add descriptive name and comments for the Na-Krul spell tome check function
5 years ago
Anders Jenbo
c6f6c99add
Fix GCC warning
5 years ago
qndel
816b244689
HasItem/RemoveInvItem combo refactor
5 years ago
qndel
0c39656c91
fix reconstructed note
5 years ago
qndel
8aec2faed0
Fix clang format in towners.cpp
5 years ago
Juliano Leal Goncalves
1328c9ea93
🎨 Make 'Size' fields camelCase
5 years ago
Yuri Pourre
38b39efd79
Missing transcriptions ( #1341 )
5 years ago
Yuri Pourre
2b298e04cc
Update barmaids' transcription after Tumayto revision
5 years ago
obligaron
ab3f3f3ee7
Introduce ItemStruct.SetNewAnimation(bool) to start Animations only at one location
5 years ago
obligaron
6d5291b17d
Enable ADL for Items
5 years ago
obligaron
ccc1ccf9c3
Introduce ItemStruct.AnimInfo
5 years ago
staphen
c4cf3db821
Close TCP client socket when leaving game
5 years ago
Anders Jenbo
27591cc29f
Fix spawn save game compatability
5 years ago
Anders Jenbo
f8a8684471
Clean up shareware endgame speach
5 years ago
Anders Jenbo
913546ba92
Mark unused item_effect_type enums
5 years ago
Anders Jenbo
2da100c63e
Align data tables
5 years ago
qndel
a8075697d7
fix thaumaturgic
5 years ago
qndel
8ba4afe313
fix wrong sound/message
5 years ago
qndel
15a4ac8e42
fix magic rock highlight
5 years ago
qndel
1c246e64d1
fix loading screens: ( #2109 )
5 years ago
qndel
ee7107c547
Fix Crypt lava tile pattern ( #2100 )
5 years ago
qndel
4ba2c755c3
attempt to fix CI ( #2113 )
...
fix CI build
5 years ago
Vladimir Olteanu
cc9783b8d9
Use WalkingDistance in TalkToTowner
5 years ago
Vladimir Olteanu
f1a3ace440
Use Point stuff in DirOK
5 years ago