Juliano Leal Goncalves
ff147f9280
🚚 Rename 'RECT32' to 'Rectangle' to match naming style of other core structs
5 years ago
Juliano Leal Goncalves
4490340a47
🚚 Move 'RECT32' type to 'engine.h' alongside other core types
5 years ago
Juliano Leal Goncalves
a983792880
♻️ Replace 'pair<int, int>' with 'Size' in 'GetItemSizeOnSlot' and 'GetInvItemSize'
5 years ago
Juliano Leal Goncalves
572c3e632e
♻️ Leverage 'Point' in 'InvDrawSlotBack' implementation
5 years ago
Juliano Leal Goncalves
07a049f667
♻️ Replace 'INV_SLOT_SIZE_PX' macro with Size-based constexpr
5 years ago
Juliano Leal Goncalves
0e2d734bbb
♻️ Leverage 'Size' in 'CheckInvPaste' implementation
5 years ago
Juliano Leal Goncalves
4ab80d25f4
♻️ Leverage 'Size' in 'AddItemToInvGrid' function
5 years ago
staphen
1ca50e65eb
Fix and reenable SNetReceiveTurns on 3DS
5 years ago
staphen
c6a9eaaf88
Implement sendmsg and recvmsg
5 years ago
staphen
9ab268ee31
Reduce memory usage requirement for key derivation
5 years ago
staphen
fea2cbb104
Initialize AC and SOC services at startup
5 years ago
staphen
12cd536259
Stub missing functions for 3DS
5 years ago
staphen
14a0da7fb3
Enable TCP in 3DS build
5 years ago
staphen
57856fa2a6
3DS SOC service initialization functions
5 years ago
staphen
f2bf6f3ff3
3DS custom RNG for libsodium
5 years ago
staphen
b6398b75d0
Replace std::mutex with SdlMutex
5 years ago
staphen
9ca9de3eba
Add virtual keyboard hints and 3DS keyboard improvements
5 years ago
ephphatha
8d5b5e833b
Add tests for LCG random engine
...
This documents the chosen LCG parameters and the default mapping function used in random number generation.
GetLCGEngineState() is a helper needed for testing because AdvanceRndSeed combines a distribution with a call to progress the engine. I'll split those eventually but this at least shows the current behaviour and should flag any bugs introduced by future changes.
5 years ago
ephphatha
fa8eada221
Remove unused variable.
...
It was documented as if this stored a seed in the previous LCG cycle but it actually stored the initial seed for the current cycle. This value is never used.
5 years ago
Anders Jenbo
3affe2eb2a
Fix SDL1 builds
5 years ago
Anders Jenbo
9dd7de027f
Limit screen to landscape mode
5 years ago
ephphatha
b478d8295c
Remove dead code, FreeText() is never called
...
Given the program already lets the destructors get called naturally there's no need to explicitly call this function. Even if it was desirable to re-init the font data the old instances will be destroyed when the new instance is assigned to the optional.
5 years ago
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