2449 Commits

Author SHA1 Message Date
Fabian Greffrath
4c4e9af6fe fix shifted keys when typing savegame names
Fixes #1773
2024-07-13 21:28:14 +02:00
gendlin
4b1a859f95
Use _div64 intrinsic if available (#1790) 2024-07-14 00:48:55 +07:00
Roman Fomin
c5587720b8
fix next weapon key with doom_weapon_toggles == 0 (#1785) 2024-07-13 20:51:46 +07:00
Fabian Greffrath
f7f77f2b40
print the gamemode in the window title (#1788)
As requested on Discord
2024-07-13 10:14:49 +02:00
Fabian Greffrath
2782539b0d
try to load soundfonts from a local user directory first (#1787)
Fixes #1781
2024-07-13 10:13:20 +02:00
Roman Fomin
c447781a13
add DivRoundClosest function, formatting (#1786) 2024-07-13 09:07:49 +07:00
Roman Fomin
80740b0b1f
fix things interpolation with FREEZE cheat in automap (#1784) 2024-07-12 17:52:01 +07:00
Roman Fomin
df6c08873e
fix bunny scroll for 32:9 aspect ratio (#1783) 2024-07-12 17:51:38 +07:00
ceski
ff6c43e238
Bring back 32:9 aspect ratio (#1774)
* Add FixedMul64

* Skip xscale calculation if not needed

* Improve sprite/voxel culling at screen edges

Calculates an ideal limit instead of using vanilla Doom's fixed value, which was only intended for an FOV of 90. Reduces missing sprites/voxels at edges with high aspect ratios and FOVs.

Co-authored-by: Julia Nechaevskaya <julia.nechaevskaya@live.com>

* Bring back 32:9 aspect ratio

* Fix borders

Co-authored-by: Roman Fomin <rfomin@gmail.com>

* Center save/load menus

Co-authored-by: Roman Fomin <rfomin@gmail.com>

---------

Co-authored-by: Julia Nechaevskaya <julia.nechaevskaya@live.com>
Co-authored-by: Roman Fomin <rfomin@gmail.com>
2024-07-09 07:31:32 -07:00
ceski
8fffd55fb0
Add SDL version check for disabled event (#1777) 2024-07-04 20:48:54 -07:00
ceski
82bc0e839a
Add speedometer widget, speed cheat (#1775) 2024-07-04 19:28:40 -07:00
Fabian Greffrath
835603dbaa fix potential string buffer overflows 2024-07-04 09:14:28 +02:00
ceski
20db64bff2
Refresh status bar background when cycling automap overlay in fullscreen (#1766) 2024-07-02 08:25:54 -07:00
Fabian Greffrath
43be8580c8
factor equalizer code out into its own source file (#1767)
* factor equalizer code out into its own source file

* add new source files to CMake

* comments
2024-07-02 10:44:35 +02:00
Fabian Greffrath
bce642c75c
factor crosshair code out into its own source file (#1765)
* factor crosshair code out into its own source file

Fixes #1764

* comments

* initialize the plr pointer

* HU_ prefix for non-static function ColorByHealth()

* check if crosshair patch lump is from a PWAD

* run clang-format over hu_crosshair.\*
2024-07-02 10:42:39 +02:00
gendlin
49979ae78a
Help fullscreen optimizations work better (#1761) 2024-06-28 17:56:09 +02:00
ceski
7b2c0d8bec
Use FRACMASK macro (#1763) 2024-06-27 22:36:01 -07:00
ceski
eaf36e3516
Add advanced version of coordinates widget (#1760)
Adapted from DSDA-Doom.
2024-06-27 12:09:28 -07:00
Fabian Greffrath
ed888d43ac undef str[n]casecmp() before redefining them 2024-06-27 11:10:05 +02:00
Fabian Greffrath
bb584c3ba1
use the same global string buffer for all widgets (#1759)
* use the same global string buffer for all widgets

* simplify

* avoid using compound literals
2024-06-27 06:27:04 +02:00
Fabian Greffrath
f8d1dfc078
add 4-band equalizer based on the OpenAL extension (config only) (#1714)
* add 4-band equalizer based on the OpenAL extension (config only)

* add comment

* another comment

* expose equalizer settings to config

* remove EQUALIZER_DEFAULT string

* allow to toggle "Apply Equalizer" in the menu

* implement Equalizer presets

The presets are exemplary for now and need some fine-tuning.

* remove header

* back to gain percent scale, dB scale is not fine-grained enough

* apply patch by @ceski-1 (thank you!)

* shorten preset names for now

* Revert "back to gain percent scale, dB scale is not fine-grained enough"

This reverts commit 3210cb07d67f71c4025e73b8b56387e45a0dc995.

* a little clean-up

* declare SetEqualizer as static

* Expose center and bandwidth settings

* Increase gain for temporary presets

* Add preamp

* Add placeholder EQ menu

* Use an alternate set of presets

* disable EQ tab in the General menu

* give equalizer presets less abstract names

* adjust equalizer preset preamp gains

@ceski-1 I will need your confirmation here

* Use safer dB ranges

* Simplify

* Formatting

---------

Co-authored-by: ceski <56656010+ceski-1@users.noreply.github.com>
2024-06-25 20:35:48 +02:00
Fabian Greffrath
480cf488d4 fix compat widget does not reset to gray
Also, space alignment is sufficient for fixed width numbers
2024-06-25 12:33:54 +02:00
Fabian Greffrath
1d294bae98 fix color translation tables for palette indices > 127
Broken for more than a year...
2024-06-25 11:13:01 +02:00
Fabian Greffrath
fed950e414
keep drop shadows of HU font glyphs black (#1758)
* keep drop shadows of HU font glyphs black

Thanks @NightFright2k19

* smoother transition
2024-06-25 08:04:12 +02:00
Fabian Greffrath
095ae7f2f2
add a compact widget showing only health, armor and ammo information (#1757)
* add a compact widget showing only health, armor and ammo information

* wording fixes

* do not restrict the w_compact widget to hud_active == 0

* add forgotten woofhud.lmp changes

* draw labels in gray

* fixed width
2024-06-25 08:03:49 +02:00
Roman Fomin
58ebd88de2 fix missed ammo_yellow config option 2024-06-25 07:52:44 +07:00
Fabian Greffrath
9d2811382f fix external asset contributors copyrights 2024-06-24 14:00:32 +02:00
Roman Fomin
1e9ad29092
DRS tweaks (#1755)
* Keep native resolution, reduce resolution more slowly.

* Remove SDL_HINT_RENDER_BATCHING
2024-06-22 08:34:28 +07:00
ceski
aecd933c5d
Video fixes (#1754)
* Fix alt+tab and Windows key when using exclusive fullscreen

* Fix OpenGL exclusive fullscreen

Ignore window events during initialization.

* Raise priority at launch, remove redundant calls
2024-06-21 11:19:35 -07:00
Roman Fomin
84cd748be5 make wrong aspect ratio not fatal 2024-06-21 20:08:30 +07:00
Roman Fomin
b9630c6829 fix bunny scroll 2024-06-21 20:08:10 +07:00
Roman Fomin
477fc429bf
linter fixes (#1719)
* use cpp-linter action

* fix header files

* disable clang-analyzer-valist checks

* remove unused values

* the value is never read from `scale`
2024-06-21 14:12:28 +07:00
ceski
6ff39793ad
Misc. input cleanup (#1753)
* Get SDL events in batches

* Clean up `I_StartTic()`

* Clean up `I_ReadMouse()`

* Ignore unused controller events

Triggers are now based on their state, like other axes.

* Combine controller update functions

* Separate mouse and gamepad ticcmd prep

* Simplify "store demo" check and disable it

From Chocolate Doom, but commented out.

* Cosmetic changes

* Remove "store demo" check
2024-06-20 09:01:56 -07:00
Roman Fomin
74c13a87c3
numspechit should be >= 0 (#1751) 2024-06-19 17:08:50 +07:00
Roman Fomin
1e4d234f44 cosmetic change 2024-06-19 15:42:17 +07:00
Roman Fomin
ad6599a1f2
brightmaps: STATE works for all sprites (#1750) 2024-06-19 15:37:17 +07:00
ceski
1eaa8cdff0
Ignore mouse motion events (#1749) 2024-06-18 23:58:17 -07:00
Fabian Greffrath
80e7fa3b09 initialize hud_timestr[], valgrind complains 2024-06-18 18:02:13 +02:00
Roman Fomin
bfabf7213b
FPS limiter tweaks (#1744)
* Remove I_CpuPause().

* Change limiter sleep loop.

* Use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION
2024-06-18 14:47:07 +07:00
Fabian Greffrath
a5be5b5e19
do not trigger silent teleports in the SPECHITS cheat (#1746) 2024-06-17 09:53:37 +02:00
Roman Fomin
1fe88ec513
reset tmthing pointer in cheat_spechits function (#1745)
Fix SPECHITS cheat in Resurge.wad MAP15
2024-06-17 11:36:24 +07:00
Fabian Greffrath
9bea4e33ac
fix automap input when being closed due to death (#1742) 2024-06-13 09:33:02 +02:00
Roman Fomin
2ea22a6455
save/load menu improvements in mouse mode (#1741)
* Don't show snapshot for page item.

* Switch pages left/right depending on mouse cursor position.
2024-06-13 14:27:38 +07:00
tomas7770
db36bafe6e
add doomu.wad alias for Ultimate Doom (#1736) 2024-06-10 08:32:56 +07:00
gendlin
2721476433
Disable SDL render batching by default (#1733) 2024-06-09 10:36:06 +07:00
ceski
06f3324f99
Unconditionally skip first/last 16 bytes of DMX sound data (#1732) 2024-06-08 06:29:01 -07:00
Roman Fomin
d22ed9b2ed upload MSYS artifact 2024-06-08 18:48:41 +07:00
Fabian Greffrath
caea42167f
fade out sound samples (#1731)
* fade out 8-bit mono sound samples

Fixes #1730

* apply to FadeInOutMono16() and FadeInOutMonoFloat32()

* Fix crash

* Check fade in and fade out separately

---------

Co-authored-by: ceski <56656010+ceski-1@users.noreply.github.com>
2024-06-08 10:24:51 +02:00
Fabian Greffrath
f7b5cd317c fix M_StringCopy() again 2024-06-07 10:03:02 +02:00
Roman Fomin
80d92fa2ae fix ST_BAR flickers when changing the resolution scale in the menu 2024-06-07 08:57:33 +07:00