sezero
274d0d31c2
3dfx.h, glidesys.h: check __MSDOS__ along with __DOS__
...
Necessary when they are used for building 3rd-party programs.
__DOS__ is defined by Watcom, __MSDOS__ is defined by DJGPP.
2018-09-10 06:55:10 +03:00
sezero
01f2e823f7
Makefile.wat: use -bt=dos option for cross-builds to target dos correctly
2018-09-10 06:27:50 +03:00
sezero
fa2272350a
Makefile.linux updates for XPATH usage: add and use X11LIBS variable.
2018-08-30 17:51:56 +03:00
sezero
4a33160a11
glide2x, sst1, Makefile.linux: updated XPATH usage to match glide3x tree
...
minor tidy-up in its glide3x counterpart.
2018-08-30 17:05:56 +03:00
sezero
c93f294492
sst1, init96.c: fixed minor warning in DEBUG builds
2018-08-30 17:04:05 +03:00
sezero
34fa903aea
glide2x, cvg: fixed DEBUG builds.
2018-08-30 17:03:20 +03:00
sezero
2a770d57d5
cvg, gglide.c (grBufferClear): avoid parentheses warning.
...
binary output is identical.
2018-08-30 17:02:47 +03:00
sezero
a7b3d9290c
glide3x, h5: remove gendate.h dependency.
...
BUILD_DATE is not used anywhare, at all.
2018-08-30 16:01:55 +03:00
sezero
e2dd1b0ba0
fxbldno.c: minor warning fixes.
2018-08-30 15:40:32 +03:00
sezero
11f9ba7f56
glide3x, Makefile.DJ: tweaked DXE descriptions.
2018-08-25 21:21:10 +03:00
sezero
5db23883e9
glide3x, Makefile.win32: reverted most parts of commit 8c917cb2
2018-08-25 21:20:30 +03:00
sezero
72028096b9
g3df.c: fix msvc build because of a sign-compare warning after 66386d5
2018-08-25 21:05:15 +03:00
sezero
ed0fb7ba52
h3/h5, lin_mode.c, linhwc.c (loadEnvFile): don't leak FILE* pointer
2018-08-24 23:10:40 +03:00
sezero
dbcbbb1313
sst1, sst1InitVoodooFile(): don't leak FILE* pointer in case of failure
2018-08-24 21:55:50 +03:00
sezero
db8ef4d0ef
cvg,sst1, init: shortened a few messages.
2018-08-24 21:03:55 +03:00
sezero
575bafe6c9
glide3x: remove obsoleted README, and rename README.2 to README
...
also edit the Voodoo Rush entry to mention Macronix along with AT3D
2018-08-23 17:20:50 +03:00
sezero
e11ac4e5db
h5, tests: rename Makefile.mgw to Makefile.mingw
2018-08-23 15:39:24 +03:00
sezero
0402d46e43
fxos.c, fxGethostname: fix a strict aliasing issue
2018-08-23 15:37:20 +03:00
sezero
cec38774f4
glide3x, tests: sbench depends on fxos.o for non-linux.
2018-08-23 15:20:02 +03:00
sezero
661f489f88
tests: conio.h or linutil.h includes are not needed
...
kbhit() and getch() are called from tlib
2018-08-23 14:33:50 +03:00
sezero
c430cef2b2
glide3x,tests,sbench.c: rename PI to FX_PI (avoid redefinition warnings)
2018-08-23 14:11:30 +03:00
sezero
4a72d2061d
glide3x, tests, tlib.c: add missing DJGPP includes for cvg, h3 and sst1
2018-08-23 14:05:55 +03:00
sezero
eb40729806
glide3x: remove old makefiles, which are obsoleted for quite some time.
...
the master branch still has the old makefiles I guess, so, look at the
master branch if need reference.
update sst1 makefiles to store the libs under individual sst1 and sst96
directories.
update linux makefiles for XPATH variable usage.
rename makefile.linux to Makefile.linux under the tests directories.
2018-08-23 14:00:02 +03:00
sezero
bd3e0372c1
glide3x, tests, sbench.c: fix build errors:
...
sbench.c:300: error: lvalue required as left operand of assignment
sbench.c:301: error: lvalue required as left operand of assignment
sbench.c:375: error: lvalue required as left operand of assignment
sbench.c:376: error: lvalue required as left operand of assignment
I _think_ this is the correct fix: MSVC6 generates the same output
before and after this patch.
2018-08-23 03:47:50 +03:00
sezero
d565bf19ef
glide3x, tests: more build fixes -- mostly for windows this time.
2018-08-23 01:20:20 +03:00
sezero
2ab9b505eb
glide3x, tests: applied warning and build fixes from glide2x tree.
2018-08-23 00:28:02 +03:00
sezero
f2e22ecf56
glide2x, tests: minor tidy-up.
2018-08-22 22:55:40 +03:00
sezero
8574e105f2
glide2x,tests,display.c: silence 'diff.data' may be used uninitialized warning.
2018-08-22 22:44:50 +03:00
sezero
a4a70bba5b
glide2x, tests: initialize firstTime to 1 instead of 0.
2018-08-22 22:20:10 +03:00
sezero
e649ca4613
glide2x, tests: comment out unused helper proc in plib.c
2018-08-22 22:02:28 +03:00
sezero
64b744733d
glide2x, tests: fix out-of-bounds access to localVerts in test25.c
2018-08-22 21:55:02 +03:00
sezero
e7cc47e93e
glide2x, tests: fix format warning test25.c
2018-08-22 21:36:33 +03:00
sezero
c6de03a346
glide2x, tests: fix warning from qatest00.c:
...
qatest00.c:517: warning: operation on 'nCurrAlpha' may be undefined
qatest00.c:528: warning: operation on 'nCurrAlpha' may be undefined
2018-08-22 21:32:40 +03:00
sezero
40230a559e
glide2x, tests: replace exit()s with return
2018-08-22 20:33:33 +03:00
sezero
ffac0696a3
glide3x: applied commit fd64b6ac of guillemj to the sst1 testsuite.
2018-08-22 16:27:02 +03:00
sezero
1567a193fe
glide2x, testsuite updates:
...
- style tidy-up in cvg and h3
- applied commit df4085a to sst1 tree
- there are suspicious -Wuninitialized warning fixes,
will revisit them soon.
2018-08-22 16:15:37 +03:00
sezero
14c8945a32
tests, tlib.c, tlib.h: silence / fix warnings:
...
fix wrong error check in SimpleRleDecode() (thanks gcc -Wsign-compare).
fix some old wrong warning fixes in glide2x tree.
also remove ctype.h dependency and use a generic strupr().
2018-08-22 14:03:15 +03:00
sezero
e3612b4f58
add missing symlinks to Makefile.linux
2018-08-22 11:32:24 +03:00
sezero
b8c4edab9d
glide2x: merge scanf() and fread() updates to g3df.c and gpci.c from glide3x
2018-08-22 03:15:56 +03:00
sezero
66386d5ac4
h5, g3df.c: fix wrong error fread() checks.
...
commit 4b63afa8 by jwrdegoede added fread() checks like:
if(fread(buf,size,nelem,fp) != size*nelem) error();
however the check must be against nelem alone, and _not_
the total bytes.
2018-08-22 02:24:24 +03:00
sezero
c30be75227
g3df.c (ReadDataShort): slightly shortened by adapting from original glide2x/sst1 version.
2018-08-22 02:11:36 +03:00
sezero
7ced8d7f32
g3df.c: don't leak the FILE* in failure cases.
...
only h5 handled that but with inlined fclose() and FXFALSE returns.
used goto statements to simplify things.
2018-08-22 02:06:40 +03:00
sezero
5d1a34c31c
h3, h5: fix a few uninitialized warnings
2018-08-21 14:05:50 +03:00
sezero
2d63cec195
h5, minihwc (hwcMapBoard): avoid shadowing a local var.
2018-08-21 12:55:02 +03:00
sezero
4a6f09253a
fix my stupid typo from commit 85ec47f
2018-08-21 04:20:04 +03:00
sezero
85ec47f22b
glide3x, h3/h5: changed threadValue stuff from FxU32 to unsigned long.
2018-08-21 04:11:28 +03:00
sezero
d04deb23d6
h5, minihwc (hwcMapBoard): make length const FxI32 type.
2018-08-21 04:10:50 +03:00
sezero
c4b365abdf
h5, minihwc (hwcAAScreenShot): change fileNameNum to unsigned int type.
2018-08-21 04:10:24 +03:00
sezero
e4fc9db7db
h3, minihwc (hwcInitRegisters): fix stupid printf/sprintf/FN_NAME typos
...
was there since the beginning.
2018-08-21 04:10:00 +03:00
sezero
537a15a2fc
glide2x/cvg (grBufferClear): revert a parentheses warning fix from 2000
...
Building glide3x/cvg, gcc emits the following warning:
gglide.c: In function `grBufferClear':
gglide.c:733: warning: suggest parentheses around arithmetic in operand of |
... but glide2x/cvg is silent for it, because commit df4085a80 from
about 18 years ago added parentheses to silence it, like:
GR_SET(BROADCAST_ID, hw, bltSize,
- ( ((((tileHi - tileLow) * gc->hwDep.cvgDep.xTilePages) - 1) << 16) | (0x1000 >> 3) - 1));
+ ((((((tileHi - tileLow) * gc->hwDep.cvgDep.xTilePages) - 1) << 16) | (0x1000 >> 3)) - 1));
... which seems wrong. Substraction has precedence, therefore the
original code OR'ed the size by 511, but the fixed code OR'ed the
size by 512 and then substracted 1 from the result.
Looking at sst1InitVideoBuffers() init/video.c: it sets sst->bltSize
like:
ISET(sst->bltSize, ((pagesToFill-1)<<16) | 511);
Therefore, reverting this part of df4085a80 now. We can live with the
warning.
2018-08-21 00:15:55 +03:00