Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
Anders Jenbo
d024f79b0e
🧹 performance-unnecessary-value-param
5 years ago
Anders Jenbo
6ba343e309
🎨 Acceptable parts of misc-*
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Gleb Mazovetskiy
70d1d633bd
Get rid of SCREEN_X / SCREEN_Y
...
GlobalOutputBuffer() now returns a clipped subregion
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
3c4ccfc2e4
CelOutputBuffer: Replace subregion with subregionY
...
We can't do anything with X yet
5 years ago
Anders Jenbo
037ef082b4
🐛 Correct position of dialog backgrounds
...
Fixes #1098
5 years ago
Gleb Mazovetskiy
83ce7c27af
Enginify `trans_rect`
...
Moves `trans_rect` to `engine` as `DrawHalfTransparentRectTo` and makes
it operate on `CelOutputBuf`.
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
bf02e0710b
Fix calculating text speed for text containing line breaks
5 years ago
Anders Jenbo
2845ea9624
Use anon namespace for local symbols
5 years ago
Anders Jenbo
e0d844eb47
Fix Windows builds
5 years ago
Anders Jenbo
757fd4d33d
Full document and further clean up minitext.cpp
5 years ago
Anders Jenbo
beca185e5b
Deduplicate some code in minitext.cpp
5 years ago
Andi
03b989f6f4
Dynamic speed scrolling text ( #985 )
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
Anders Jenbo
4e7e3e0b46
0 1 0 0 1 ... 2
6 years ago
Tyler
ecde1f647e
Adjust UI to any resoution
6 years ago
Tyler
c803c6aa66
Calculate position of screen elements
6 years ago
Joel Falcou
9ba87895ae
Fix issue with NPC/Quest text scrolling
...
Scrolling text were abruptly closing while the audio
played right. This patch fix a simple error on the
scrolling loop so the corretc variable is used to make
the scrolling happens
6 years ago
Robin Eklind
7873bd4356
minitext: fix variable names of minitext.cpp
...
The variable names were mixed up.
sgLastScroll -> qtextSpd
scrolltexty -> qtextDelay
qtextSpd -> sgLastScroll
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
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
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 :)
7 years ago
Anders Jenbo
113b060e03
Use cel function to render PrintQTextChr
7 years ago
Anders Jenbo
da679a66a6
Convert inc file to a function
7 years ago
Anders Jenbo
ad7a621e5f
Drop PitchTbl to avoid resolution restriction
7 years ago
Anders Jenbo
6597688eac
Rename cell functions
7 years ago
Anders Jenbo
d2b1f0cfc8
Apply the Cel helper functions in a few more places
7 years ago
Anders Jenbo
f605138c79
Strip ASM code
7 years ago
Anders Jenbo
9d3ce818f0
Correct BOOLS
7 years ago
Anders Jenbo
6fba17eec5
Correct GLOBAL types based on PSX SYM 3
7 years ago
Anders Jenbo
5ab9f4609a
Clean up signedness
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
Anders Jenbo
a7788ccddf
Format bin exact code
7 years ago
Manuel K
97c1edd3a0
Use BUFFER_WIDTH
7 years ago
galaxyhaxz
d8b3e7ab37
DrawQText ( #1091 )
7 years ago
Anders Jenbo
55a0396f8f
Clean up mem_free_dbg style
7 years ago
galaxyhaxz
777c517b8e
Change ASM macro
7 years ago
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
7 years ago
galaxyhaxz
740e91e881
rename screen_y_times_768
7 years ago