Fabian Greffrath
fad2d48b8f
test cross building in our CI rule ( #396 )
...
* test cross building in our CI rule
* fix format string for mingw-w64
* attempt to improve/generalize CI rule
* another attempt at fixing format string silliness
* last attempt to fix format string on all archs
2021-12-23 12:39:28 +01:00
Roman Fomin
10a37d6e24
more consistent installation of dependencies ( #397 )
...
* more consistent installation of dependencies
* don't download SDL2 libs on MSYS
* fix typo
2021-12-23 12:36:28 +01:00
Fabian Greffrath
63b7097601
set MINIZ_ macros globally
2021-12-22 21:24:32 +01:00
Roman Fomin
9fb04bb75c
fix SDL2_NET_DLL_DIR path
2021-12-23 02:41:26 +07:00
Roman Fomin
ef2b24175d
set all SDL2 paths for MinGW packaging
2021-12-23 00:54:29 +07:00
Roman Fomin
aa28066b1c
cosmetic fixes
2021-12-23 00:52:45 +07:00
Fabian Greffrath
dd51ba1d36
some more clean-up in i_video.c
2021-12-22 16:11:44 +01:00
Fabian Greffrath
52d2073b92
initialize certain video parameters only once
...
Also, remove some redundant config variable duplicates and some more minor
clean-up in I_InitGraphicsMode.
2021-12-22 10:33:55 +01:00
Fabian Greffrath
72989b154f
apply scalefactor from command line only once during initialization ( #393 )
...
* apply scalefactor from command line only once during initialization
On subsequent calls of I_InitGraphicsMode(), e.g. when changing hires
or widescreen in-game, determine (coarse, integer) scalefactor from
current ratio of window and framebuffer size. Resize window only if
new size is going to be wider than previous size. Force resizing of
window if scalefactor was set on command line.
* fix window getting resized only if width increases
* rendered height does not necessarily match window height
2021-12-22 10:19:31 +01:00
Roman Fomin
123423c7ad
on Windows first search for SDL2 libraries, then download from libsdl.org ( #388 )
...
* on Windows first search for SDL2 libraries, then download from libsdl.org
* add mingw dependecies
* get runtime dependencies for SDL_Mixer and libmodplug on MinGW
* search for SDL2 libs first, install libfluidsynth if found on MinGW
* use target filename
* don't install DLLs to target file dir
* fix typo
* search for DLLs names using dlltool
* little cleanup
2021-12-22 10:19:16 +01:00
Roman Fomin
7b0cf3f333
replace mmus2mid with mus2mid from Chocolate Doom ( #394 )
2021-12-21 18:51:28 +01:00
Fabian Greffrath
1805d02925
add miniz as a replacement for SDL_Image+libpng+zlib ( #390 )
2021-12-21 10:32:29 +01:00
Fabian Greffrath
5264af7f74
add atexit() sequence priorization ( #389 )
...
* add atexit() sequence priorization
Mostly taken from DSDA-Doom, thanks @kraflab.
* make absolutely sure Z_Close (destroys zone memory) is called after everything else
2021-12-21 10:32:16 +01:00
Roman Fomin
1405f92de9
undo new_sync interpolation fix ( #385 )
2021-12-17 15:48:21 +01:00
Roman Fomin
7df31b1203
more correct way to fix demowarp/demoskip ( #384 )
...
* more correct way to fix demowarp/demoskip
* remove redundant declaration
2021-12-17 15:48:07 +01:00
Roman Fomin
9068327662
fix player mobj is always in S_PLAY_RUN1 state in complevel boom ( #381 )
...
* fix player mobj is always in S_PLAY_RUN1 state in complevel boom
* add comment
2021-12-17 15:47:14 +01:00
Roman Fomin
35f869f4d1
set demo_insurance = 0 ( #380 )
...
* set demo_insurance = 0
* keep original code
* remove default_demo_insurance
2021-12-17 15:47:00 +01:00
Fabian Greffrath
1241bf146c
add a signal handler to exit gracefully on fatal signals ( #379 )
...
* attempt to write out demo that lead to raising a fatal signal
* call I_Error() in I_SignalHandler()
it gets called by G_CheckDemoStatus() anyway
2021-12-17 15:46:47 +01:00
Roman Fomin
703719854a
Enable Fluidsynth support on Windows ( #350 )
...
* remove snd_card and mus_card (Allegro)
* add fluidsynth soundfont path settings
* remove redudant printf
* fix missing #endif
2021-12-17 15:46:35 +01:00
Roman Fomin
bf31a22f5f
fix -longtics parameter, remove unnecessary variables ( #378 )
...
* fix -longtics parameter, remove unnecessary variables
* remove complevel variable, MBF21VERSION macro
* -longtics command line parameter is for the complevel vanilla only
* fix -complevel parameter
2021-12-15 09:49:31 +01:00
Fabian Greffrath
8138f378df
implement custom atexit() sequence ( #377 )
...
* implement custom atexit() sequence
* use stdlib malloc() in I_AtExit()
* get rid of has_exited, we already handle recursive I_SafeExit() calls
2021-12-14 07:17:06 +01:00
Roman Fomin
7f9a7239e8
win midi: remove volume correction
2021-12-12 15:32:09 +07:00
Roman Fomin
b63042cf6a
automap: fix drawing marks > 9
2021-12-12 14:05:57 +07:00
Fabian Greffrath
bd071429d9
initialize TXT_SDLWindow
2021-12-10 10:43:55 +01:00
Fabian Greffrath
8cc369dadf
cosmetics
2021-12-10 10:38:23 +01:00
Fabian Greffrath
54a46a5a25
free video resources on shut down ( #376 )
...
Consider that the window and renderer get reused by I_EndDoom() and thus
#delay their destruction. Fixes #353 , fixes #355 .
2021-12-10 09:56:04 +01:00
Fabian Greffrath
393a45492f
reuse existing renderer in TXT_Init() ( #375 )
...
instead of destroying it and creating a new one.
Fixes a crash on exit when ENDOOM is enabled.
Fixes #372 , thanks @hackneyed-one.
2021-12-10 09:55:51 +01:00
Roman Fomin
2d0e18f829
use basetic for realtics calculation to compensate pause ( #374 )
...
* use basetic for realtics calculation to compensate pause
* fix ticdup
2021-12-09 21:03:10 +01:00
Roman Fomin
581d645558
netgame: enable -loadgame ( #371 )
...
* netgame: enable -loadgame
* fix -record -loadgame
2021-12-09 21:02:55 +01:00
Roman Fomin
1dc57a508a
netgame: fix compatibility for Woof complevel vanilla server
2021-12-09 01:23:37 +07:00
Roman Fomin
6a93b4fc35
netgame: set compatibility (used in G_ReadOptions)
2021-12-08 19:11:01 +07:00
Roman Fomin
3490c1ba0a
netgame: simplify compatibility options sync
2021-12-08 15:00:47 +07:00
Roman Fomin
dc65592dff
fix interpolation in new_sync mode ( #370 )
2021-12-08 08:35:28 +01:00
Roman Fomin
eebaa2dcc3
implement low-res turning (and -shorttics) ( #369 )
2021-12-08 08:33:56 +01:00
Roman Fomin
069a4e5c10
explicitly call memory management functions in net_ * files
2021-12-08 13:13:37 +07:00
Roman Fomin
d4610e111c
netgame: fix free() call
2021-12-08 01:59:04 +07:00
Roman Fomin
2217e75e1c
integrate net_gui module from Chocolate Doom ( #365 )
...
* integrate net_gui
* fix SDL_INIT_VIDEO
* remove CheckSHA1Sums()
* fix format warning
* remove unused code
* fix net_gui exit
2021-12-07 14:49:07 +01:00
Roman Fomin
fffc6238b0
fix missing gamepad graphics in the menu ( #368 )
2021-12-07 07:19:50 +01:00
Roman Fomin
9468d7614a
fix memory leak
2021-12-06 19:17:38 +07:00
Roman Fomin
97779b39fb
speed up midifile.c ( #367 )
...
* don't realloc for one event at time
* use memio
* fix gcc warning
2021-12-06 08:19:29 +01:00
Roman Fomin
d5bb524f77
win midi: fix pitch bend range when stopping song ( #366 )
2021-12-06 08:18:48 +01:00
Fabian Greffrath
e21655fe9d
now fix building with non-MinGW GCC
2021-12-03 12:10:57 +01:00
Fabian Greffrath
9ec3ee6f2d
Merge branch 'master' of https://github.com/fabiangreffrath/woof
2021-12-03 11:11:56 +01:00
Fabian Greffrath
f3f0a28817
fix building with MinGW
2021-12-03 11:11:36 +01:00
Roman Fomin
6d211635e6
netgame: fix connection to Chocolate Doom server
2021-12-03 16:29:39 +07:00
Roman Fomin
fbeac8bf21
allow the DEH parser to skip blank lines ( #364 )
...
* allows the DEH parser to skip blank lines
* fix dehfseek call
* remove redundant checks, fix multiple DEH processing
2021-12-03 09:58:13 +01:00
Fabian Greffrath
36972fde3c
Merge branch 'master' of https://github.com/fabiangreffrath/woof
2021-12-01 09:37:30 +01:00
Fabian Greffrath
6a061fb0ee
update to SDL 2.0.18
2021-12-01 09:37:21 +01:00
Roman Fomin
385dfc44f7
fix scaled time interpolation ( #363 )
...
* fix scaled time interpolation
* remove float
2021-11-30 08:52:46 +01:00
Roman Fomin
03b0409584
bring implementation of -timedemo in line with Chocolate Doom ( #362 )
2021-11-28 20:24:01 +01:00