Commit graph

1647 commits

Author SHA1 Message Date
sezero
5031797029 stb_image_write.h: fix build with watcom
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1466 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-08 09:37:06 +00:00
ewasylishen
af930063b3 SCR_ScreenShot_f: change default format to png, using stb_image_write
Add optional format and quality args to "screenshot" command,
can specify tga, png, jpg

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1465 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-08 05:07:56 +00:00
sezero
14fc39495d kill annoying warnings. remove commented pakfile/progs.dat testing code from Modlist_Init().
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1464 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-04 20:36:59 +00:00
ewasylishen
95bdd1fadf r_alias: add MF_HOLEY (0x4000) model flag, from QSS.
(MarkV compatible).
For more info see: http://celephais.net/board/view_thread.php?id=61351&start=1&end=1

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1463 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-04 19:45:11 +00:00
sezero
53186a2d12 oslibs, codecs: rebuilt libopusfile from the latest 0.9 release.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1462 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-03 11:37:13 +00:00
ewasylishen
36dab3581f gl_vidsdl.c: restore vid_refreshrate from fitz 0.85; SDL2 supports it
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1461 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-03 06:43:38 +00:00
ewasylishen
e878b9b135 gl_vidsdl.c: fix indentation
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1460 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-30 22:55:51 +00:00
ewasylishen
30114cf36c gl_vidsdl.c: fix bug where vid_desktopfullscreen would get set to 1
when entering fullscreen. Fix VID_GetDesktopFullscreen() which
was incorrectly returning "true" in regular fullscreen mode.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1459 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-30 22:46:34 +00:00
sezero
3b17130a2c in_sdl.c: OW1.9 doesn't have powf() and sqrtf(). use pow/sqrt, instead.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1458 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 07:00:50 +00:00
sezero
679633be98 used wrong def in r1456..
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1457 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 06:16:55 +00:00
sezero
ceda87cd5d sdl, win32, watcom: generate our own import lib instead of using vc6 lib
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1456 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 05:55:26 +00:00
sezero
b8b2490f72 SDL windows: move SDL_main sources into their own directory
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1455 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 05:36:30 +00:00
sezero
38568d21d5 net_wins.c: disable WSA*BlockingHook() stuff for winsock2 builds
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1454 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 00:35:03 +00:00
sezero
5d97cc48be add SDL2 stuff to watcom makefile
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1453 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 00:33:02 +00:00
sezero
4f333c9abe windows SDL2: add watcom libs
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1452 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 00:32:22 +00:00
ewasylishen
25571466a4 sv_move.c: add explicit int cast to a float argument to abs().
Previously, the cast was implicit since abs() takes an int,
so there is no change in behaviour.
Suppresses a clang warning that we might want fabs().

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1451 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:50:25 +00:00
ewasylishen
0c8bd54371 PL_ErrorDialog: fix clang warning about format string not a literal
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1450 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:50:18 +00:00
ewasylishen
8855838fa8 Modlist_Init: fix unused variable warning
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1449 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:50:11 +00:00
ewasylishen
9ea9f53493 snd_mix.c: Fix clang warnings about bit-shifting negative numbers
(which is implementation-defined)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1448 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:50:03 +00:00
sezero
aea0298877 noreturn functions: use the 'aborts' aux pragma with Watcom
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1447 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:11:03 +00:00
sezero
43b20b9dbf add win32 makefile for watcom. it builds and runs.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1446 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:10:03 +00:00
sezero
9d50ee74f9 add win32 codec libs for watcom.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1445 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:05:30 +00:00
sezero
0a08ce0f39 teach SDL_config_win32.h that Watcom has stdint.h
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1444 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:04:22 +00:00
sezero
226b7ff555 r_alias.c: change *AttrIndex into macros instead of static const vars.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1443 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:01:19 +00:00
sezero
3c698dc7d9 sv_main.c (SV_Init): use a return instead of a dummy assignment after Sys_Error to silence compiler
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1442 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:00:56 +00:00
sezero
b23310c4e4 r_part.c (R_ReadPointFile_f): silence pesky compiler warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1441 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:00:32 +00:00
sezero
59320a6bdd revise the function attributes usage: do not use the gcc __attribute__
directly, but define proper macros for each attribute we do or may use.
also support MSC along the way for example with the noreturn attribute.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1440 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 12:50:10 +00:00
ewasylishen
eb1ceddcb2 in_sdl.c: raise joy_deadzone_trigger to 0.2.
Previous value of 0.001 was probably too low, may have caused
"stuck" triggers:
http://celephais.net/board/view_thread.php?id=60452&start=2935

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1439 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-27 22:55:08 +00:00
sezero
2abaf25e1d changelog update / tidy-up.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1438 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-27 16:37:28 +00:00
sezero
f3823fcdb0 bump version to 0.93.0 (there has been enough changes), update changelog.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1437 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-27 15:56:58 +00:00
sezero
6f1e85ac1e change QUAKESPASM_VER_SUFFIX to be a string literal and adjust
QUAKESPASM_VER_STRING for it.  revise the QS_STRINGIFY macros.
fixes "the not enough actual parameters for macro QS_STRINGIFY"
warnings from my VS2005.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1436 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-27 14:32:31 +00:00
sezero
bbe09ced57 remove all libmodplug code
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1435 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-27 12:50:17 +00:00
ewasylishen
275c106826 drop MAX_MAP_LEAFS limit and move 4 static buffers to use realloc().
4 buffers were: mod_novis, decompressed, checkpvs, and fatpvs.

Also fix fatbytes calculation in SV_FatPVS to match the other PVS
buffers, was (numleafs+31)>>3, changed to (numleafs+7)>>3.
I am assuming the previous was a bug/typo.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1434 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-26 04:27:16 +00:00
sezero
b1d4fb8829 oslibs, codecs, xmp.h: rename EXPORT to LIBXMP_EXPORT:
EXPORT is a dangerously common name.

(patch has been sent to mainstream.)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1433 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-25 14:10:12 +00:00
sezero
c386f96e79 oslibs, codecs: rebuilt libvorbis for macosx after applying commit 68ebc89 from mainstream.
(the changeset only affects LP64 systems, so only x86_64-apple-darwin needed a rebuild.)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1432 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-22 18:02:44 +00:00
ewasylishen
99686c6164 raise CON_TEXTSIZE from 64KB to 1MB
useful for capturing debug info e.g. "entities" command which prints
a lot.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1431 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-22 01:56:38 +00:00
sezero
c4c17335de oslibs, codecs: rebuilt mpg123 for macosx and windows:
- applied fixes/updates from mainstream svn up to rev. 4304.
- fixed configury bug for i?86-apple-darwin* which prevented
  asm optimizations from being built in.
- disabled ICY parsing which we don't need at all.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1430 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-20 00:03:29 +00:00
ewasylishen
73a5d27bf3 Update changelog (not yet generated html/txt).
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1429 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-19 05:41:06 +00:00
ewasylishen
abd8779b69 Add "find" as an alias for "apropos" (for consistency with MarkV)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1428 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-19 05:40:54 +00:00
ewasylishen
c51eef74f3 Host_Randmap_f: print the map being started
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1427 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-19 05:40:37 +00:00
sezero
de1d282bc1 oslibs: rebuilt all win64 libraries with an updated toolchain.
toolchain updates include :
- applies the pseudo-reloc patch from mingw-w64 git/master (commit 1259532)
- fixes a badly merged bfd patch.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1426 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-14 00:05:35 +00:00
sezero
6757794514 oslibs, codecs: rebuilt mpg123 after applying two fixes from mainstream
including a fix for CVE-2017-11126.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1425 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-11 14:02:45 +00:00
sezero
d333319435 oslibs: update FLAC/stream_decoder.h from xiph git. rebuilt mpg123 with another fix from mainstream.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1424 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-03 09:47:19 +00:00
sezero
45e543a47f oslibs: rebuilt libmad for windows and macosx:
- previous windows builds seem to have missed the '--disable-debugging'
  configury switch.
- used dllexport/dllimport or visibility attributes to export only the
  relevant symbols.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1423 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-30 22:20:15 +00:00
sezero
a88f1f4ad3 oslibs, codecs: rebuilt libmpg123 after applying fixes from mpg123 svn
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1422 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-30 14:10:17 +00:00
sezero
372a6e839b oslibs: rebuilt ogg/vorbis for windows and macosx
- used dllexport/dllimport or visibility attributes when building vorbis
- applied commit 14920bae03 from xiph.org ogg git repo
- applied commit e5b1378996 from xiph.org vorbis git repo

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1421 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-28 11:05:57 +00:00
ewasylishen
1276a626fe raise MAX_MAP_LEAFS to 80000 to handle ad_sepulcher.bsp
TODO: maybe switch to malloc'ed pvs arrays now?

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1420 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-24 07:23:46 +00:00
ewasylishen
ac22b41406 Xcode project: set tab width to 8
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1419 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 23:22:09 +00:00
ewasylishen
3e0ccccb50 host_cmd.c: Add "randmap" command, requested by Barnak
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1418 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 23:22:00 +00:00
ewasylishen
e333e14cb6 Com_game_f: try execing quake.rc automatically..
Not convinced there are any issues with this, and it solves these
problems:
- change to new gamedir without execing quake.rc and exit: the
  config.cfg in the new gamedir will be clobbered with the settings
  from the previous gamedir.
- discrepancy between -game command line arg and "game" command.

Video mode is locked during the "exec quake.rc" to prevent the mode
from changing.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1417 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 22:02:49 +00:00