Anders Jenbo
cc280eeba3
Enable asserts in files that where cleaned
6 years ago
Anders Jenbo
6704657e71
Apply sematic codestyle
6 years ago
Anders Jenbo
1340192b59
Correct array sizes
6 years ago
Anders Jenbo
7db4ed749a
Apply more enums, defines and types
6 years ago
Anders Jenbo
a291939a7d
Value types
6 years ago
Anders Jenbo
187a021b30
More documentation from sanctuary/notes ( #2026 )
6 years ago
Anders Jenbo
0383f9abcd
Add documentation to more files
6 years ago
Anders Jenbo
3c276a3cd3
Add documentation
...
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
6 years ago
galaxyhaxz
81ff8e6287
Metallic hydrogen neural array
6 years ago
Anders Jenbo
20621a0642
add all.h and use in place of diablo.h ( #2005 )
...
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.
Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
6 years ago
Anders Jenbo
08aa6a860a
Move generic helpers out of miniwin
6 years ago
qndel
3008439bc7
enums and stuff
6 years ago
Anders Jenbo
5fa0c5781b
Backport cleanups from Hellfire branch
6 years ago
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
Anders Jenbo
71adfe509e
Document more attributes
6 years ago
Anders Jenbo
92ab05ea13
Decompose more magic numbers
6 years ago
Anders Jenbo
2348c3a8fd
Documentations, enums and clean ups
6 years ago
Anders Jenbo
d354bd9767
Lock framerate at vsync instead of 20fps
...
Since most animations are still controlled by the game logic the only
real benefit is smoother mouse and scrolling text, but it's a start :)
6 years ago
Anders Jenbo
ad7a621e5f
Drop PitchTbl to avoid resolution restriction
6 years ago
Anders Jenbo
6597688eac
Rename cell functions
7 years ago
Gleb Mazovetskiy
69d6238a7c
Add BUGFIX comment for gmenu_call_proc
7 years ago
Gleb Mazovetskiy
bf493d8b58
Fix UB: pointer overflow gmenu.cpp:112
7 years ago
qndel
6a1ab27a1a
gmenu_clear_buffer cleanup
7 years ago
galaxyhaxz
8cddb57d08
Fix returning in gmenu_lmouse
7 years ago
Anders Jenbo
e2bff090d6
Come up with names for all remaning arguments
7 years ago
Anders Jenbo
3bc8ba66b0
Use defines for more screen geometry values
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
7c071924ad
Format recently cleaned code
7 years ago
Sergey Semushin
138197eb9b
Fix min diff in gmenu_draw_menu_item.
7 years ago
Anders Jenbo
ce520b395b
Fix gmenu_draw_menu_item
7 years ago
Anders Jenbo
457b9186da
Clean up gmenu_draw_menu_item
7 years ago
Manuel K
896933f55e
Replace magic number 352 with VIEWPORT_HEIGHT ( #1232 )
7 years ago
qndel
66f160a962
gmenu_left_mouse bin exact
7 years ago
qndel
844845f0b0
gmenu_call_proc bin exact ( #1179 )
7 years ago
Anders Jenbo
daec57bc38
More descriptive names for the menu slider functions
7 years ago
qndel
5047da4997
gmenu_slider_get bin exact ( #1174 )
7 years ago
Anders Jenbo
6733cb1b2e
Update Source/gmenu.cpp
7 years ago
qndel
41767ae5ef
gmenu_draw bin exact
7 years ago
qndel
94c075d87c
gmenu_print_text bin exact
7 years ago
qndel
ce366c9e7e
gmenu_slider_3 bin exact
7 years ago
qndel
1ee54e159a
gmenu_slider_1 bin exact ( #1117 )
7 years ago
qndel
8db0582377
gmenu_clear_buffer cleaned - was bin exact already ( #1114 )
7 years ago
qndel
1ef20112f2
gmenu_get_lfont bin exact
7 years ago
qndel
5235e1498d
gmenu renamed variables
7 years ago
qndel
9712874994
gmenu_up_down bin exact
7 years ago
qndel
6f7d4ee8db
gmenu_left_right bin exact
7 years ago
qndel
0f1e6bba8d
gmenu_left_right bin exact
7 years ago
qndel
a70c788c74
gmenu_on_mouse_move bi nexact
7 years ago
Anders Jenbo
55a0396f8f
Clean up mem_free_dbg style
7 years ago
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
7 years ago