Commit graph

14 commits

Author SHA1 Message Date
Clownacy
d81c46a79c Release custom code under the MIT licence
Of course, Pixel's code is still proprietary.
2020-10-23 19:09:55 +01:00
Clownacy
5adc06536b More-accurate Triangle.cpp variable arrangement 2020-01-07 22:13:37 +00:00
Clownacy
82454c3a62 Comment style tweaks in the last three files 2019-11-14 00:15:02 +00:00
Clownacy
d8d789a780 Triangle.cpp cleanup 2019-11-14 00:15:02 +00:00
Clownacy
0532e2afa2 Shut up a warning 2019-09-06 20:08:07 +01:00
Clownacy
7f7553bef2 An accuracy improvement in Triangle.cpp
This one's weird: it doesn't affect the actual generation of ASM in
the function, but rather it affects the ASM of sinf and cosf.

You see, sinf and cosf are static - they're built right into the EXE.
Since the previous code used cosf and sinf, they were embedded into
the EXE, and InitTriangleTable would call them directly.

However, this isn't what the original EXE does: instead,
InitTriangleTable calls an intermediary function, that in turn calls
the real cosf and sinf. Turns out this strange code generation is
caused by calling cos and sin instead of cosf and sinf, but still
using float parameters.
2019-09-05 17:04:07 +01:00
Clownacy
676ee004fe Removed the dependency on stdint.h
This doesn't exist in MSVC2003, and nothing in the Linux port's debug
symbols indicate Pixel used it.
2019-05-13 15:18:33 +01:00
Gabriel Ravier
960fa6f456 Removed all trailing spaces and added newline at EOF (when not present)
Also changed a "linux" to "Linux"

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-05-07 11:55:42 +02:00
Clownacy
cfcee6d4c3 Made Triangle.cpp ASM-accurate 2019-04-08 16:57:20 +01:00
Clownacy
01ddc5e923 Fixed some warning MSVC2003 was giving in /W3 mode 2019-02-23 21:45:57 +00:00
Clownacy
e3549f8703 Made Triangle.cpp ASM-accurate
It's really starting to look more and more like Pixel really did write
in C90... just look at the declarations I have to shove at the start of
the functions.
2019-02-21 23:24:23 +00:00
Clownacy
0bb9760d87 Rearranged #includes 2019-02-18 21:30:22 +00:00
Clownacy
77fc01311f Cleanup, accuracy, and a fix 2019-02-01 13:50:33 +00:00
cuckydev
c84f49f1dc wip 2019-01-16 22:48:21 -05:00