Robin Eklind
f9fa98984b
engine: pass tbl parameter explicitly instead of using default parameter values
...
This helps make the header files in `Source/*.h` parsable from both
C and C++.
Any headers in SourceX can easily be C++ only, but keeping
the core Devilution code parsable as both C and C++ is
useful for integration into mods.
6 years ago
galaxyhaxz
67fedd9e99
Fix unknown struct field and drawpanflag
6 years ago
Anders Jenbo
0e578ffb11
Enable assertions
6 years ago
Anders Jenbo
1df595c1e0
Revert e35b00acd9 for CelBlitLightSafe
6 years ago
Mathieu Maret
e35b00acd9
Simplify few loops by using memcpy
6 years ago
Anders Jenbo
933262d701
Remove support for partial cel decoding
...
Since we no longer make use of this it should result in a small speed up
6 years ago
Robin Eklind
e155a9423e
rename random to random_ to avoid collision with random in stdlib.h
...
Fixes #1813 .
6 years ago
Anders Jenbo
7d1b0f24f7
Eliminate overdraw in cell functions
6 years ago
Anders Jenbo
3fe2d08940
Deduplicate monster drawing
6 years ago
Anders Jenbo
f8c16a1dcb
Only use safe blitting and set gpBufEnd to the correct relative values
...
This again allows us to only selectivly render the UI panel
This also eliminates the need for the BORDER_BOTTOM 10k memory saved!
6 years ago
Anders Jenbo
337bc9b125
Render text in screen cordinates instead of buffer offsets
6 years ago
Anders Jenbo
ad7a621e5f
Drop PitchTbl to avoid resolution restriction
6 years ago
Anders Jenbo
9e1b161bc0
Unify upper and lower screen rendering
6 years ago
Anders Jenbo
6597688eac
Rename cell functions
7 years ago
Anders Jenbo
bf040777cb
Make more use of cell helpers
7 years ago
Gleb Mazovetskiy
e4de2ad177
Fix UB: Signed integer overflow engine.cpp:1264
7 years ago
Anders Jenbo
ba9288c6cf
Unify error dialogs, for looks and portability
...
- Use UiOkDialog() to display all error messages
- Add SDL simple message, and console fallbacks to UiOkDialog()
- Boot graphics early on to facilitate most error messages with build in
gui
- Some more miniwin clean ups
7 years ago
Anders Jenbo
e97061f126
Correct bad definition of nDataSize
7 years ago
Anders Jenbo
ed746a6d2d
Fix Cl2DecodeFrm3
7 years ago
Anders Jenbo
1a2f2b5f52
Implement CelGetFrameClipped from the Mac 9 port
7 years ago
Anders Jenbo
64824cab2b
Implement CelGetFrameStart
7 years ago
Anders Jenbo
6dd0893bce
Implement CelGetFrameSize
7 years ago
Anders Jenbo
ce6fc51b50
Implement CelGetFrame (CEL decoder helper)
...
This implements the first of the inlined CEL decoder helper functions
that are still visable in the Mac port code.
Functions are still bin exact
7 years ago
Gleb Mazovetskiy
2cc0c2cfbb
Clang: Remove -fms-extensions -fms-compatibility
7 years ago
qndel
32e519415a
GetDirection cleanup
7 years ago
qndel
a593f3a1d2
6 functions cleanup
7 years ago
qndel
a0575d335f
random bin exact in vanilla/hellfire
7 years ago
Anders Jenbo
2012106b90
Fix spell rendering
7 years ago
Anders Jenbo
762c49ea2e
Remove some left over asm
7 years ago
Anders Jenbo
1ebf8fe27d
Remove unused fallbacks
7 years ago
Anders Jenbo
f605138c79
Strip ASM code
7 years ago
Robin Eklind
2508690d9c
engine: rename rand_increment and rand_multiplier to RndInc and RndMult
...
Rationale described in a479cc56b8
as included below:
Note, neither rand_increment nor rand_multiplier are
present in the PSX debug info. To keep the names for
these variables consistent with the naming convention
used for sglGameSeed, SeedCount, SetRndSeed and
GetRndSeed (which are part of the PSX debug info), we
rename them to RndInc and RndMult, respectively.
7 years ago
Alex Yatskov
f1da6e6a38
Fix invalid file and line constants ( #222 )
...
* Fix invalid file and line constants
* add macros
* remove ASSERT_FAIL macro
7 years ago
Anders Jenbo
3bc8ba66b0
Use defines for more screen geometry values
7 years ago
Anders Jenbo
55b5ce883d
Clean up unformatted files
7 years ago
Anders Jenbo
7883043adc
Clean up files with dirty headers
7 years ago
Anders Jenbo
32a51d17ca
Align function signatures with PSX symbols
...
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
7 years ago
Anders Jenbo
f31cac0ee0
Clean up Cl2DecodeFrm3, Cl2DecodeFrm5, Cl2DecodeLightTbl & Cl2DecodeFrm6
7 years ago
Sergey Semushin
2b816ff9a8
Make CelDrawHdrLightRed bin exact.
7 years ago
Anders Jenbo
0397dbe9e3
Allign similar code in engine.cpp
7 years ago
Anders Jenbo
85651c015a
Consistent var naming in engine.cpp
7 years ago
Manuel K
97c1edd3a0
Use BUFFER_WIDTH
7 years ago
Manuel K
df1d049ae3
Use SCREEN_Y
7 years ago
Manuel K
896933f55e
Replace magic number 352 with VIEWPORT_HEIGHT ( #1232 )
7 years ago
Sergey Semushin
a87f1450e7
Add algorithm description comment for DrawLine.
7 years ago
Sergey Semushin
b971d8a2cb
Make DrawLine bin exact by copying from its original source.
7 years ago
galaxyhaxz
5e10dcb912
diablo_reload_proc & Xiaolin Wu ref
7 years ago
galaxyhaxz
75a150d142
DrawLine ( #1084 )
7 years ago
galaxyhaxz
5d4918eea0
LoadWithMem
7 years ago
galaxyhaxz
3a636fdcc6
Add missing functions for MI_Dummy ( #1004 )
7 years ago