sezero
ca1e7fd506
h3, h5, gdebug.c: fix gdbg_msgfile initializer issue with mingw.
2018-08-11 00:28:15 +03:00
sezero
ccbd5a7b41
h5, minihwc: use local _aligned_malloc implementation with mingw.
2018-08-11 00:26:31 +03:00
sezero
c62583a3ee
h3, gthread.c: fix breakage after commiet 797d81af
2018-08-10 21:01:32 +03:00
sezero
93dcdb9390
h3,h5, gdraw.c: minor typo/whitespace fixes and some syncing.
2018-08-10 20:45:20 +03:00
sezero
797d81af4a
h3, fxglide.h, gthread.c: copy over gcc compatibility changes from h5.
2018-08-10 20:38:57 +03:00
sezero
8a406cba3d
h3, h5: gsfc.c: replace backslash path separators in include directive.
2018-08-10 20:38:32 +03:00
sezero
da4d6857ba
sst1, xdraw.asm: don't add _ prefix to exported symbol name with mingw.
...
Otherwise GNU toolchain fails with the error message:
"Cannot export _grDrawTriangle@12: symbol not found"
Learning something everyday.
2018-08-10 20:38:15 +03:00
sezero
b6d45d842c
sst1, Makefile.win32: remove duplicated gxdraw.obj in objects list.
2018-08-10 20:37:55 +03:00
sezero
355dca22a1
fxvxd.c: gcc inline asm for _inp, _inpw, _inpd, _outp, _outpw, _outpd.
2018-08-10 20:37:33 +03:00
sezero
57230a2161
cvg, parse.c: fixed a format warning from mingw.
2018-08-10 20:37:17 +03:00
sezero
b594bf89aa
sst1init.h: remove a weirdness from INIT_PRINTF definition for windows
...
gcc (mingw) emitted lots of 'left-hand operand of comma expression has
no effect' warnings for it..
2018-08-10 20:36:28 +03:00
sezero
043f38b035
restrict #pragma optimize to Visual Studio builds
2018-08-10 20:36:10 +03:00
sezero
f3ed63fc58
fix parens around truth value warnings.
2018-08-10 20:35:54 +03:00
sezero
d92d50efc8
oeminit.h: fix 'extra tokens at end of #endif directive' warning
2018-08-10 20:35:41 +03:00
sezero
2a7cfdfec7
warning fixes.
2018-08-09 21:50:10 +03:00
sezero
faf890d878
cvg, h5, cpuid.c: fixed strict aliasing issue with newer gcc versions.
2018-08-09 20:51:50 +03:00
sezero
5f69e69154
3dfx.h: minor update for Fx?32 types
2018-08-09 17:55:02 +03:00
sezero
6759df5ead
cvg, makefile.linux: remove fxremap.o from objects.
...
fxremap() is called only in dos and windows builds.
2018-08-09 16:10:50 +03:00
sezero
7dbc64777a
apply the commit 721b6fcf changes to h3info.h, too. [glide2x side]
2018-08-09 16:10:01 +03:00
sezero
5c6e58e4e2
apply the commit 721b6fcf changes to ddglobal.h and h3info.h, too.
2018-08-09 15:55:28 +03:00
sezero
b5a555a538
cvg,fxremap.c: only include sst1init.h (for INIT_PRINTF) for dos builds
...
for others, make INIT_PRINTF() in fxremap.c a nop.
2018-08-09 15:55:01 +03:00
sezero
b4c30b1693
h3cinit.c: made mode_table[] and vgaattr[] static const
2018-08-09 12:51:50 +03:00
sezero
721b6fcf1b
cvg, fxremap: removed all unnecessary stuff, made it to use INIT_OUTPUT
2018-08-09 11:56:56 +03:00
sezero
43f6bbc977
cvginfo.h: remove top-level defines and forward declare struct sstregs.
...
It 'defined' FxU32 and FxBool for if __unix__ is defined and cvgregs.h
not included. DJGPP does define __unix__, and this caused a mess with
one of my experiments.
I do not see the real need for this. So, adding a forward declaration
of struct sstregs, replacing all SstRegs* with volatile struct sstregs*
serves the purpose. 3dfx.h (which typedefs FxU32 and FxBool) is always
included before cvginfo.h everywhere in the code, so, there is no need
for 'defining' FxU32 and FxBool here, either.
DJGPP build gives an identical DXE output before and after this change.
2018-08-09 11:50:02 +03:00
sezero
64bae86d19
cvg, fxremap: leave out lots of actually unused code from build.
...
glide code only calls fxremap() and not fxremap_main(), so silent
is always true, there is no cmdline processing, and nothing can
actually print to console. added a new FXREMAP_EXE ifdef in there
to filter things out.
2018-08-09 02:20:40 +03:00
sezero
43291704cb
h5,dos_mode.c,lin_mode.c: made buildVideoModeData and setVideoModeSlave static.
...
whitespace tidy-up.
2018-08-08 23:55:32 +03:00
sezero
12d926449a
cvg, gu.c: added guEncodeRLE16()
...
this function used to be exported by earlier versions of glide3x.dll in
voodoo2 reference drivers, but later it disappeared. it _is_ present in
glide3x.dll versions for all other voodoo boards, so added it here.
2018-08-08 23:04:10 +03:00
sezero
b62e3fd33c
h5, fxglide.h: restored FX_EXPORT in GR_ENTRY definition.
...
koolsmoky commit 0b8571b (initial checkin of dos win32 glide) commented
it out for who knows why, and that resulted in two of the exports in the
dll to go missing, namely grCheckForRoom and guEncodeRLE16. they are now
back.
2018-08-08 22:39:10 +03:00
sezero
3c54cfde1e
cvg,sst1 init: #undef FX_DLL_ENABLE so that we don't dllexport the symbols.
2018-08-08 22:38:50 +03:00
sezero
40ee824879
swlibs, fxpci: #undef FX_DLL_ENABLE, so that we don't dllexport the symbols.
2018-08-08 22:38:27 +03:00
sezero
bc18c519d7
gdebug.c: #undef FX_DLL_ENABLE, so that we don't dllexport the symbols.
2018-08-08 22:38:12 +03:00
sezero
1fe48886a8
gdebug.c: whitespace tidy-up.
2018-08-08 22:37:50 +03:00
sezero
de0e7ca28f
fxdll.h: revert koolsmoky commit bab2f1c 'use dllimport for __MSC__ imports'
...
it was wrong, and was causing LNK4049 warnings.
2018-08-08 22:35:48 +03:00
sezero
1e89ef2670
cvg, Makefile.win32: missed replacing one path separator
2018-08-08 18:55:04 +03:00
sezero
8c917cb2a2
convert win32 Makefiles to crlf, convert path separators to backslash.
2018-08-08 14:56:02 +03:00
sezero
8adf484af7
h3, h5: last of the VC6 and ddraw.h compatibility stuff.
2018-08-08 14:25:50 +03:00
sezero
e710954c4e
h5, minihwc.c: VC6 rejects pMinSW in the inline asm.
...
changed pMinSW mm0,mm3 to
_asm _emit 0x0f _asm _emit 0xea _asm _emit 0xc3
2018-08-08 11:10:02 +03:00
sezero
59d59bad72
h5, minihwc.c: VC6 doesn't have _aligned_malloc(). locally implemented.
2018-08-08 11:06:51 +03:00
sezero
380a78de05
h3, h5, minihwc: remove some unused stuff from win_mode.c. minor cleanup.
2018-08-08 10:50:10 +03:00
sezero
42c8b28993
Windows (VC6) build fixes, 03/##: HMONITOR type hack for h3 and h5.
2018-08-08 08:55:02 +03:00
sezero
d6fce294b4
h3, h5, minihwc: don't unconditionally define GDBG_INFO_ON in win_mode.c
2018-08-08 08:50:37 +03:00
sezero
0aa1e159bf
Windows (VC6) build fixes, 02/##: grDrawLine() const issue.
...
this is a hack and need to be fixed properly by constifying other
procedures.
2018-08-08 08:47:00 +03:00
sezero
d6448ee662
Windows (VC6) build fixes, 01/##
2018-08-08 08:45:02 +03:00
sezero
29212e8a14
fxremap.c: warning fixes.
2018-08-07 12:04:40 +03:00
sezero
af4ebfce0c
warning fixes and minor cleanup.
2018-08-07 11:58:55 +03:00
sezero
19efdba7e0
swlibs/fxmisc/fximg.c: -Wformat warning fixes
2018-08-07 11:57:45 +03:00
sezero
032b25b708
minor type corrections
2018-08-07 10:37:24 +03:00
sezero
d46910aa23
sst96.c (_grSst96Load32): fix a minor warning after commit 30ec8787
2018-08-06 17:00:02 +03:00
sezero
2ee4b4f583
h3, h5, minihwc: don't unconditionally define GDBG_INFO_ON in minihwc.c
...
several constifications. exclude the debug stuff from release builds.
fixed that 'waxRegnames' typo in HWC_WAX_STORE and HWC_WAX_LOAD macros.
2018-08-06 14:10:02 +03:00
sezero
b33d69b0a3
cvg, fxremap.c: make almost everything static.
...
except for the two exported functions.
also replaced 'null' by 'NULL' (why that 'null' define I wonder..)
2018-08-06 14:00:50 +03:00