Commit graph

148 commits

Author SHA1 Message Date
Anders Jenbo
3fe2d08940 Deduplicate monster drawing 2019-10-20 15:59:47 +02:00
Anders Jenbo
dfbce7b2ce Deduplicate drawing players 2019-10-20 15:59:47 +02:00
Anders Jenbo
305484156e Deduplicate drawign items, remove pBuff from scrollrt_draw_e_flag() 2019-10-20 15:59:47 +02:00
Anders Jenbo
8f916e4d1f Merge town_draw_town_all() with scrollrt_draw_dungeon() 2019-10-20 15:59:47 +02:00
Anders Jenbo
40fa2f6596 Merge east-flag functions 2019-10-20 15:59:47 +02:00
Anders Jenbo
16820106bc Merge town_draw() with scrollrt_draw()
This require calling DRLG_InitTrans() during CreateTown() to clear out
the transparancy flags after having been to the duntion. Else the
mausoleum will be transparent.
2019-10-20 15:59:47 +02:00
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!
2019-10-20 15:59:47 +02:00
Anders Jenbo
2079b67475 Drop dpiece_defs_map_1 memory access optimization
This also gets rid of IsometricCoord. They where used to map tiles in a
way that had a simpler access pattern when rendering the screen in
visual oriented rows.
See
https://github.com/diasurgical/devilution/pull/544#issuecomment-450968761
2019-10-20 15:59:47 +02:00
Anders Jenbo
bfe0a54f4a Merge T_DrawView and T_DrawGame with there scrollrt variants 2019-10-20 15:59:47 +02:00
Anders Jenbo
7ab68036f2 Remove extra flag and double call to draw function 2019-10-20 15:59:47 +02:00
Anders Jenbo
c4a7df80a7 Use CelDraw function for rendering instead of CelBlit
This leaves just town_special, scrollrt arches and left side of
two-handed weapons to be using direct blitting functions.
2019-10-20 15:59:47 +02:00
Anders Jenbo
337bc9b125 Render text in screen cordinates instead of buffer offsets 2019-10-20 15:59:47 +02:00
Anders Jenbo
ad7a621e5f Drop PitchTbl to avoid resolution restriction 2019-10-20 15:59:47 +02:00
Anders Jenbo
e695c0d9ea Combine zoomed and standard view 2019-10-20 15:59:47 +02:00
Anders Jenbo
d4e3b573d0 Allow for adjustable resolutions
The render is still only stable when height is a multiple of 32 and
width is a multiple of 64. 832x480 gives you close to 16:9 with the
original height.
2019-10-20 15:59:47 +02:00
Anders Jenbo
9e1b161bc0 Unify upper and lower screen rendering 2019-10-20 15:59:47 +02:00
Anders Jenbo
8ed4515727 Strip clipping from town and scroll 2019-10-20 15:59:47 +02:00
Anders Jenbo
11e8df8f6c Deduplicate missile rendering code 2019-10-20 15:59:47 +02:00
Anders Jenbo
a0baa92ef0 Merge branch 'master' of github.com:diasurgical/devilution 2019-10-13 19:59:26 +02:00
Anders Jenbo
feeae23076 Prevent infinit recursion in UiOkDialog 2019-10-13 14:48:28 +02:00
Anders Jenbo
6597688eac Rename cell functions 2019-10-13 13:31:56 +02:00
Anders Jenbo
02416d3fc7 Merge branch 'master' of github.com:diasurgical/devilution 2019-10-12 18:15:34 +02:00
galaxyhaxz
3c7a08a336
Fix function order [scrollrt.cpp] (#1800) 2019-10-12 06:27:58 -05:00
Anders Jenbo
d840f388c7 Merge branch 'master' of github.com:diasurgical/devilution 2019-10-08 22:05:10 +02:00
arczi84
1ab2fb2666 Endian madness 2019-10-08 02:28:03 +02:00
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
2019-10-06 01:27:11 +02:00
qndel
0fb6025948 scrollrt_draw_lower_2 cleanup 2019-10-03 18:32:48 +02:00
qndel
2dadb3e3a3 scrollrt_draw_lower cleanup 2019-10-03 18:32:36 +02:00
Anders Jenbo
1d03064fee Clean up sound code 2019-09-25 11:32:30 +02:00
Anders Jenbo
88813c4042 Strip some now unused parts of miniwin and windows api 2019-09-25 01:18:42 +02:00
Robin Eklind
d16f603537 all: remove unused storm imports
While no storm functions are called from these source files
it is determined that they included storm in the original
source files as made visible by the inclusion of infinity
in the data segments of the respective source files.

ref: diasurgical/devilution#1695.
2019-09-20 11:05:25 +02:00
Anders Jenbo
14f8c9368a Merge branch 'master' of github.com:diasurgical/devilution 2019-09-13 17:51:58 +02:00
qndel
6cf1da4045 Apply enums to _mFlags 2019-08-31 09:21:15 +02:00
qndel
a17e34c4bf applied enums to _pmode and untangled ifs 2019-08-31 06:23:35 +02:00
Anders Jenbo
1ebf8fe27d Remove unused fallbacks 2019-08-26 14:05:04 +02:00
Anders Jenbo
f605138c79 Strip ASM code 2019-08-26 13:33:03 +02:00
Alex Yatskov
f1da6e6a38 Fix invalid file and line constants (#222)
* Fix invalid file and line constants

* add macros

* remove ASSERT_FAIL macro
2019-08-07 15:49:20 +02:00
Anders Jenbo
2fcf8dab70 Merge branch 'master' of github.com:diasurgical/devilution 2019-07-21 19:39:17 +02:00
Anders Jenbo
9d3ce818f0 Correct BOOLS 2019-07-21 19:11:11 +02:00
Anders Jenbo
6fba17eec5 Correct GLOBAL types based on PSX SYM 3 2019-07-21 04:10:31 +02:00
Anders Jenbo
5ab9f4609a Clean up signedness 2019-07-21 00:57:53 +02:00
Sergey Semushin
843ae57592 Make scrollrt_draw_dungeon bin exact. 2019-07-20 21:42:58 +03:00
Anders Jenbo
60ee365dff Merge branch 'master' of github.com:diasurgical/devilution 2019-07-20 19:52:50 +02:00
Joan Karadimov
f695061d05 Replace resolution-related hard-coded numbers with constants 2019-07-20 17:24:34 +02:00
Anders Jenbo
3bc8ba66b0 Use defines for more screen geometry values 2019-07-20 17:10:49 +02:00
Anders Jenbo
a7ad382c10 Get scrollrt_draw_dungeon to min diff
Co-Authored-By: Sergey Semushin <predelnik@gmail.com>
2019-07-20 00:29:11 +02:00
Xadhoom
148a7be44d Merge upstream branch 'devilution/master' 2019-07-10 17:04:38 +00:00
Anders Jenbo
55b5ce883d Clean up unformatted files 2019-07-08 04:28:31 +02:00
Anders Jenbo
d2cb6a59e7 Apply scrollrt naming to town.cpp 2019-07-05 13:23:48 +02:00
Anders Jenbo
f187fe7d3a Merge branch 'master' of github.com:diasurgical/devilution 2019-06-22 18:14:48 +02:00