Anders Jenbo
31467cc949
♻️ Remove all usage of basic WIN32 types
...
Note that several WinAPI types are still in use (misc.h)
5 years ago
Gleb Mazovetskiy
70d1d633bd
Get rid of SCREEN_X / SCREEN_Y
...
GlobalOutputBuffer() now returns a clipped subregion
5 years ago
Anders Jenbo
17803d5923
♻️ Apply proper types to PlayerStruct
5 years ago
Gleb Mazovetskiy
cd59a1c323
Completely replace gpBuffer with CelOutputBuffer
...
`CelOutputBuffer` now contains an `SDL_Surface` and an `SDL_Rect`.
We now have access to SDL surface manipulation functions.
`gpBuffer` and `gpBufEnd` are completely gone 🧹
This results in some FPS loss (250 -> 195) recovered in a subsequent
commit.
5 years ago
Gleb Mazovetskiy
bafbad6b5b
Migrate RedBack away from gpBuffer
5 years ago
Gleb Mazovetskiy
e7c9ba40f5
Migrate DrawLife/ManaFlask away from gpBuffer
5 years ago
Gleb Mazovetskiy
ab6aa3f280
Migrate SetFlaskHeight away from gpBuffer
...
Also renames to `DrawFlaskTop` and makes it static.
5 years ago
Gleb Mazovetskiy
379b45e021
Migrate `CelDrawLight` to `CelDrawLightTo`
5 years ago
Gleb Mazovetskiy
b43325028f
Migrate `CelDraw` to `CelDrawTo`
5 years ago
Anders Jenbo
e280432b92
🚨 Fix all SDL1 warnings
5 years ago
Anders Jenbo
dd73ff2cf0
🚩 Add option for disabeling frindly fire ( #1104 )
5 years ago
Juliano Leal Goncalves
37466890e0
♻️ Extract 'ItemStruct.isEmpty()' function
5 years ago
Anders Jenbo
2923ad043a
🚸 Shift+click to clear the readied spell
5 years ago
Gleb Mazovetskiy
d55a1c8a7d
Pass CelOutputBuffer to game text printing ( #1095 )
...
* Pass CelOutputBuffer to game text printing
* DrawHalfTransparentRectTo: minor cleanup
5 years ago
Juliano Leal Goncalves
c81a1efb55
Standardize colon alignment on text ( #816 )
5 years ago
Gleb Mazovetskiy
8283f85e24
Engine: Functions to render to any buffer
...
Refactor the rendering functions to allow rendering to any output
buffer.
New functions that accept a buffer have the `To` suffix.
The functions that render to the global buffer now always accept
coordinates.
5 years ago
Anders Jenbo
70ca20b59f
Clean up Hellfire special cases
5 years ago
Anders Jenbo
36a196389b
Fix remaning basic compiler errors and warnings
5 years ago
pionere
f5c1079d6f
eliminate unused code
5 years ago
qndel
ab9911064f
unify checks for single and multiplayer
5 years ago
Anders Jenbo
c08a10e44b
Unify calculation of gold icon
5 years ago
Juliano Leal Goncalves
0c19d43ee8
Replace "hot key" occurrences with "hotkey"
5 years ago
Juliano Goncalves
20c44a08ca
Spend all stat points with shift click
5 years ago
Anders Jenbo
00e3ff08ae
Unify majorty of monster.cpp
5 years ago
Robin Eklind
ef64f49c4c
control: add BUGFIX comment for DrawSpellBook
...
The render of the spellbook page 3 and page 4 buttons were both
off by one pixel.
5 years ago
Anders Jenbo
8c261d0966
Merge remaning clean Hellfire code paths
5 years ago
Anders Jenbo
0c96e32f19
Unify all defines, enums and structs
5 years ago
Anders Jenbo
e609e170d0
Merge a large chunk of Hellfire the code paths
5 years ago
Anders Jenbo
c802cbdc4d
Merge more Hellfire code paths
5 years ago
Anders Jenbo
d20eddf48e
Unifcy a chunk of Hellfire's code pathts
5 years ago
qndel
c4c2e0420c
spell defines and macros ( #2162 )
5 years ago
Anders Jenbo
086cdf6afe
Re order control.cpp
5 years ago
Anders Jenbo
330074e840
Clean up menu animation code
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
Anders Jenbo
e073422ce7
Unify executable for Spawn and Retail
...
The game will now autodetect if it should run in shareware mode or full
retail based on the found mpq file. Additionally it can beforced in the
shareware mode with --spawn even if the retail data is found.
This simplifies a lot of the spagetty code and lets us better refactor,
also worth noteing is that we won't have to setup a secound set of build
tests.
5 years ago
Anders Jenbo
02ddab6a31
Apply SPLICONLENGTH
6 years ago
qndel
ed11e3bde5
[hellfire] DrawSpellList bin exact
6 years ago
qndel
5d7eeddcc9
[hellfire] DrawChr bin exact
6 years ago
qndel
fb8955dd5c
control_print_talk_msg cleanup
6 years ago
qndel
a78d532e2c
DrawGoldSplit cleanup
6 years ago
qndel
af76de2563
CheckSBook cleanup
6 years ago
qndel
f5ab247c42
CheckChrBtns cleanup
6 years ago
qndel
703ec92566
control_check_btn_press cleanup
6 years ago
qndel
0ef6d9e97b
DoPanBtn cleanup
6 years ago
qndel
f0f33571a6
DoSpeedBook cleanup
6 years ago
qndel
1e5554ec6f
DrawChr cleanup
6 years ago
Anders Jenbo
76f63c9202
Fix icon offset
6 years ago
Anders Jenbo
c53ca1a62a
Adjust resolution to monitor default on startup
6 years ago
Anders Jenbo
c2d54ad39e
Decompose number
6 years ago
Anders Jenbo
2a3db5f316
Clean up DrawDurIcon
6 years ago