Commit graph

61 commits

Author SHA1 Message Date
Anders Jenbo
4e8a8d2157 Merge remote-tracking branch 'refs/remotes/devilution/master' 2019-10-26 13:43:28 +02:00
Mathieu Maret
a12a7998d1 simplify world_draw_black_tile 2019-10-24 23:27:29 +02:00
Mathieu Maret
b2ed866c7a Code simplification using memset/memcpy 2019-10-24 23:27:29 +02:00
Anders Jenbo
2348c3a8fd Documentations, enums and clean ups 2019-10-21 19:33:14 +02:00
Anders Jenbo
7d1b0f24f7 Eliminate overdraw in cell functions 2019-10-20 15:59:47 +02:00
Anders Jenbo
da679a66a6 Convert inc file to a function 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
d0f1100983 Drop speedcel optimizations
Even on VC6 this appears to not improve performance in any noticable way
2019-10-20 15:59:47 +02:00
Gleb Mazovetskiy
fb37bbf675 Disable some signed shift UBSAN warnings
On Clang we can do this globally via a sanitizer blacklist, but that's not supported on GCC (yet):
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61978

We disable these warnings because all compilers implement them in the
same way according to the N2218 proposal to standardize the behaviour:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2218.htm
2019-10-10 13:51:19 +02:00
Gleb Mazovetskiy
1ec5fa7896 Fix UB: load/store of misaligned render.cpp:130
Source/render.cpp:130:47: runtime error: load of misaligned address 0x7fea0df260da for type 'DWORD', which requires 4 byte alignment
Source/render.cpp:130:26: runtime error: store to misaligned address 0x7fea5796ff62 for type 'DWORD', which requires 4 byte alignment
2019-10-09 19:52:50 +02:00
arczi84
1ab2fb2666 Endian madness 2019-10-08 02:28:03 +02:00
Anders Jenbo
4fc52a0e23 Format render.cpp 2019-08-26 14:32:26 +02:00
Anders Jenbo
ec90987be0 Switch to new render from Galaxy 2019-08-26 13:32:59 +02:00
Anders Jenbo
2fcf8dab70 Merge branch 'master' of github.com:diasurgical/devilution 2019-07-21 19:39:17 +02:00
Anders Jenbo
b023104434 Remove u from values 2019-07-21 00:57:53 +02:00
Anders Jenbo
6ba57a2d10 Remove the last bit of garbage 2019-07-21 00:57:53 +02:00
Anders Jenbo
5ab9f4609a Clean up signedness 2019-07-21 00:57:53 +02: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
e6f4e21631 Merge branch 'master' of github.com:diasurgical/devilution 2019-06-16 19:18:19 +02:00
Anders Jenbo
11b6b1f860 Remove more garbage 2019-06-03 02:20:42 +01:00
Xadhoom
6856fb74e2 Merge upstream beanch 'devilution/master' 2019-04-25 20:44:01 +00:00
Anders Jenbo
65b9fb87a8 Merge branch 'TownDead' 2019-04-24 14:08:25 +02:00
galaxyhaxz
777c517b8e Change ASM macro 2019-04-22 02:23:12 -05:00
galaxyhaxz
540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxz
4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
Anders Jenbo
d8bb37349e Merge branch 'master' of github.com:diasurgical/devilution 2019-04-06 04:34:49 +02:00
Anders Jenbo
d2174e3454 Apply code style 2019-04-05 21:54:45 +02:00
Anders Jenbo
a907a4d49b Merge branch 'master' of github.com:diasurgical/devilution 2019-04-05 15:21:53 +02:00
galaxyhaxz
d879a325e1
Fix dTransVal and pLightTbl (#825) 2019-04-02 14:19:28 -05:00
galaxyhaxz
b59754bd64
Render.cpp bin exact (#744) 2019-03-26 08:20:46 -05:00
galaxyhaxz
a29c75a3a2
Fix a few func/var names (#731) 2019-03-24 05:54:44 -05:00
Xadhoom
5283a9ffd1 Put everything into namespace dvl 2019-03-11 20:10:23 +00:00
Anders Jenbo
1e4e826a36 Remove delta to devilution 2019-01-23 17:11:52 +01:00
Xadhoom
cadef0d942 Merge upstream branch 'devilution/master' 2019-01-21 09:44:54 +00:00
Robin Eklind
66dacd0967 render: clean up inlined asm functions (#553)
* render: clean up inlined asm functions

Now, these functions no longer use references. Instead they
use pointer to pointer.
2019-01-05 22:14:15 +01:00
galaxyhaxz
1324082090
The big cheap fix (#446) 2018-11-05 21:47:14 -06:00
Anders Jenbo
b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
galaxyhaxz
84b041cf7d Fix angular trans tiles 2018-10-25 22:18:18 +02:00
Anders Jenbo
6723acc98f Format clean render bits 2018-10-22 00:47:21 +02:00
galaxyhaxz
0f184f2b71
Move assembly to _asm.cpp (#388) 2018-10-07 00:32:36 -05:00
galaxyhaxz
2f46409b64
Add inlining to render.cpp (btm) (#383) 2018-10-05 22:12:42 -05:00
nomdenom
d14bf20467 Source: NO_GLOBALS support (for Miniwin) 2018-10-01 21:31:47 -07:00
galaxyhaxz
0d0f1bc5dc T2: add inlining to render.cpp 2018-09-25 15:47:55 -05:00
galaxyhaxz
c9a6c21c5f Rename variables in render.cpp 2018-09-25 15:32:25 -05:00
galaxyhaxz
4bdd50440d
Fix lighting of some floor tiles
Devilution is now basically bug free!
2018-09-10 15:55:46 -05:00
galaxyhaxz
9f206691b0
render.cpp -> undo memset/memcpy (#186) 2018-08-31 23:55:42 -05:00
galaxyhaxz
5ed7a29e22
render.cpp -> implement memset/memcpy 2018-08-29 00:28:00 -05:00
galaxyhaxz
d991f63b16
Fix type of screen_buf_end (#184) 2018-08-27 22:16:26 -05:00