1412 Commits

Author SHA1 Message Date
Fabian Greffrath
7ecfd34845 improve color scheme for the time widget 2023-02-08 14:19:59 +01:00
Fabian Greffrath
492f6d665c improve color scheme for the monsec widget 2023-02-08 14:19:53 +01:00
Fabian Greffrath
5e75b0faea fix two-sidedness detection in EV_DoDonut()
That is, explicitly revert to the original faulty check
2023-02-06 16:30:01 +01:00
Fabian Greffrath
bf27bfe512 clip interpolated psprites
Thanks @mikeday0
2023-02-06 12:04:08 +01:00
Fabian Greffrath
e76c6561d2
fix colorized player names in network chats (#896) 2023-02-04 08:51:07 +01:00
Fabian Greffrath
4be6a0de42 reset color range in the w_keys widgets 2023-02-03 13:49:22 +01:00
Fabian Greffrath
21aeefee24
prepare for variable HUD widget font (#895)
* prepare for variable HUD widget font

* regular HUD font is not meant to change
2023-02-03 09:08:43 +01:00
Fabian Greffrath
682b00798a fix stutter in custom weapon switch animations
Fixes #893, thanks again @MrAlaux
2023-02-03 08:35:57 +01:00
Fabian Greffrath
cd3768ef44 grammar fix: past participle of teach = taught
Thanks @MrAlaux
2023-02-03 08:31:08 +01:00
Fabian Greffrath
45f3bf4855 non-zero mouse sensitivity default values
Fixes #891
2023-02-03 08:03:44 +01:00
Fabian Greffrath
75a328513f
get rid of the separate widget for the graphical keys (#894)
* get rid of the separate widget for the graphical keys

* fix checks that prevented key drawing
2023-02-03 08:00:59 +01:00
Fabian Greffrath
2b08e04955 simplify HU_Init() 2023-02-02 15:13:10 +01:00
Fabian Greffrath
122f1d493a fix type of the player_s.oldviewz element
Thanks @ceski-1
2023-02-02 08:55:37 +01:00
Fabian Greffrath
3934a303ef
factor out HUD widget generation from HU_Drawer() into HU_Ticker() (#886)
* factor out HUD widget generation from HU_Drawer() into HU_Ticker()

* removed unused dead code

* remove obsolete comment

* fix typo

* avoid using redundant string buffers
2023-02-01 08:24:41 +01:00
Fabian Greffrath
0b6e3d2362 remove some unused functions from HUlib, declare some others as static 2023-01-31 07:44:06 +01:00
Fabian Greffrath
1465287840
rename plr->centermessage to plr->secretmessage (#889) 2023-01-30 17:13:23 +01:00
Fabian Greffrath
335d478928
add "linear" resampling mode and make it the default instead of "default" (#888) 2023-01-30 17:13:07 +01:00
Fabian Greffrath
1d7cb3072f remove another part of my previous commit, sigh 2023-01-27 21:44:44 +01:00
Fabian Greffrath
876c6a3d3b fix monsec/sttime widgets on screen bezel 2023-01-27 21:36:22 +01:00
Fabian Greffrath
193c257503 remove copy-pasted line 2023-01-27 20:23:40 +01:00
Fabian Greffrath
7209583ceb fix color picker showing up in automap text color selection 2023-01-27 11:35:52 +01:00
Fabian Greffrath
c2401c33ee
introduce HUlib_drawTextLineAt() and use it consistently for w_monsec and w_sttime (#879)
Draw to temporary position instead of changing widget coordinates back and forth.
2023-01-27 09:09:47 +01:00
Fabian Greffrath
0b65b314e9 remove redundant declaration of player_t *plr 2023-01-27 08:04:33 +01:00
ceski
411d43b37b
winmidi: Send "reset all controllers" when song loops (#878)
* winmidi: Fix songs with missing "hold pedal off" events

* Revert "winmidi: Fix songs with missing "hold pedal off" events"

This reverts commit a12e8e6a5a7c06236bc3f0e4d9abc03c19758f1e.

* Send "reset all controllers" when song loops

* Use consistent int type
2023-01-26 10:36:19 +07:00
Roman Fomin
77b5a3f6ef bmaps: don't error out on unknown sprite
Fix kdikdizd.zip loading
2023-01-26 10:28:43 +07:00
Fabian Greffrath
009f9a4b45 fix misleading indentation in level title initialization 2023-01-25 07:45:57 +01:00
Fabian Greffrath
b67f73a1b4 fix parentheses in some ternaries 2023-01-25 07:44:00 +01:00
Fabian Greffrath
2e54f67ce3 let w_wad.h include z_zone.h and clarify role of "tag" parameter 2023-01-20 10:32:12 +01:00
Fabian Greffrath
191fb2576b rearrange some crosshair code 2023-01-20 08:40:24 +01:00
Roman Fomin
c5518cdd3f move triplets to cmake directory 2023-01-17 01:14:42 +07:00
Roman Fomin
a98de6d71f
textscreen updates (#872)
* Resizable textscreen windows.

* Increase the default window size to 800x600.

* Correct aspect ratio in textscreen windows.

* Remove aspect ratio correction.
2023-01-13 19:21:09 +07:00
Fabian Greffrath
c950a3b014
fix some automap rotate/follow/overlay inconsistencies (#874)
Fixes #804
2023-01-13 12:13:31 +01:00
Fabian Greffrath
69b82e1a02 some more startup messages cosmetics 2023-01-13 10:02:37 +01:00
Fabian Greffrath
32e7b145fc
rearrange the startup messages (#873)
* print port's name and version in the startup messages

* re-arrange some more startup messages
2023-01-13 09:27:45 +01:00
Fabian Greffrath
fa228559f7 do not ignore repeated signals, it's not going to get any better 2023-01-13 09:12:27 +01:00
Fabian Greffrath
c2df5a2894 improve DEH lump souce logging in ProcessDehFile() 2023-01-13 08:13:12 +01:00
Roman Fomin
b1609270f2 do not update vcpkg (it is regularly updated in the windows-2022 image) 2023-01-12 20:27:35 +07:00
Fabian Greffrath
3a775d0605 ensure that the new buffer length is a multiple of sample size 2023-01-12 09:58:23 +01:00
Roman Fomin
7be859730a
clean up in build system (#869)
* Restore FindSDL2* modules, use CMAKE_FIND_PACKAGE_PREFER_CONFIG

* Rename FluidSynth::FluidSynth->FluidSynth::libfluidsynth for compatibility
  with provided config

* Don't use SDL2_MAIN_LIBRARY variable
2023-01-12 08:32:17 +07:00
Fabian Greffrath
658982d210
factor out pitch shifting into a separate function (#868) 2023-01-11 20:37:51 +01:00
Fabian Greffrath
3e30111ad0
support multi-channel samples by converting them to mono first (#867)
* support multi-channel samples by converting them to mono first

* add forgotten semicolons (dammit Python!)

* fix potential memory leak on error
2023-01-11 20:16:51 +01:00
Fabian Greffrath
21ceb5cf41 Merge branch 'master' of https://github.com/fabiangreffrath/woof 2023-01-11 15:45:30 +01:00
Fabian Greffrath
5eb640fd03 don't try to load again sound lumps that unce failed to load 2023-01-11 15:45:02 +01:00
Roman Fomin
88a94d21f0
support BRGHTMPS lump from Doom Retro (#846)
* u_scanner: make internal functions `static`

* add support for `SPRITE` and `FLAT`

* scan multiple BRGHTMPS lumps, move data to autoload directory

* do not scan twice (BRIGHTMAP must be defined before use)

* implement STATE

* skip BRGHTMPS lumps in demo footer

* add NOBRIGHTMAP special case

* implement optional DOOM|DOOM2 fields
2023-01-11 21:31:42 +07:00
Roman Fomin
cde9dd6aec add custom triplets for vcpkg
* Build only release packages.

* Use the "/fp:fast" compiler option for libsamplerate, which greatly increases
  speed (up to 10x for SRC_LINEAR).
2023-01-11 14:54:28 +07:00
Fabian Greffrath
95cde386eb
load sound lumps with libsndfile (#864)
* Load sound lumps with libsndfile

* factor out entire sound lump loading into i_sndfile.c

* fix void pointer arithmetics

* fix wav buffer length calculation

* include libsndfile in vcpkg CI
2023-01-11 08:37:45 +01:00
Fabian Greffrath
73dc94480c
use SDL_ConvertAudio() to convert sound samples to target format (#863)
* properly cache sound lump numbers

* initialize original_S_sfx[] array using macros

* rename channelinfo[].id -> channelinfo[].sfx

* rename LINKED_SOUND -> SOUND_LINK

* use SDL_ConvertAudio() to convert sound samples to target format

Fixes #858

* precache_sounds is not an option anymore

* lowpass_filter is not an option anymore

* rename channel -> handle and other clean-up

* some more clean-up

* fix pitch-shifted sounds

* set SDL_HINT_AUDIO_RESAMPLING_MODE to "default"

* set SDL_HINT_AUDIO_RESAMPLING_MODE to "linear", with a comment

* clear out cvt target buffer

* de-obfuscate steptable[pitch] generation

* make snd_samplerate and snd_resampling_mode configurable

* simplify SOUND_LINK macro call

* set default sampling mode to "default"

* cosmetics

* comments

* correct snd_resampling_mode choice name

* replace some redundant variables by a single SDL_AudioSpec

* forgotten parenthesis

* minor polish
2023-01-10 07:48:33 +01:00
Roman Fomin
e5872e9bda clean up in CMakeLists.txt
Also update SDL2 to 2.26.2 otherwise it will always rebuild in my pull request.
It's probably not a good idea to always update vcpkg.
2023-01-09 19:39:50 +07:00
Roman Fomin
caa7299abb update vcpkg 2023-01-09 15:02:49 +07:00
Fabian Greffrath
b22ef7e580 CI: enable libsamplerate support for SDL2 2023-01-09 08:31:13 +01:00