December 2019
-
General
Recalculate horizycent because ydim can be changed in renderSetTarget
-
General
Revert "Windows: Remove keyboard layout switching entirely"
Show details
This change was not well thought out and breaks a number of things for users of foreign keyboards. Unfortunately, we are still at a point where removing keyboard layout switching is a QOL downgrade.
-
Remove keyboard layout switching entirely
Show details
Upon testing this already seems to do the right thing in game and editor, with winlayer, SDL 1.2, and SDL 2: use the labels on the keys when entering text such as in the console, and the positions of the keys for everything else.
-
General
Remove -msse2 from default 32-bit x86 optimization parameters
-
General
Improve diagnostic printing of slopalookup overflows
-
General
Fix regression in software rendering of slopes in r8363
-
General
Fix SDL 1.2 build
-
General
Fix RENDERTYPE=WIN build
Show details
Broken in r8319.
-
General
Amend r8174: Remove call to windowsHandleFocusChange during SDL_WINDOWEVENT_ENTER and SDL_WINDOWEVENT_LEAVE
Show details
These events are for when the mouse cursor enters and leaves the window's region, not any kind of focus change. Confirmed with a test app. The SDL Wiki's description, "window has gained/lost mouse focus" is misleading.
-
General
Fix crash when specifying an out of range value for sys_timer in the console
Show details
Manifests as a crash on startup for all users who previously had sys_timer set to 4.
-
General
This should fix rare stalls of several seconds when changing window focus on some Windows systems, related to changing the keyboard layout
-
General
Fix SW compilation under VS
-
General
Fix Mapster32 undo corruption issue
-
General
This is a __restricted area
Show details
Theoretically, this will help the compiler generate more optimized code. In practicality, I haven't seen any difference yet but I don't think giving the compiler hints as to the intended operation of the code is ever really a bad thing.
-
General
Track cache1d block overhead differently
-
General
These shouldn't be references
-
General
Update cvar help strings, WIP
-
General
Improve console cvar printing
Show details
This breaks cvar printing out of osdcmd_cvar_set() and creates osdfunc_printvar(), which prints the cvar's current value and the range of values it accepts. This also improves the output of the "help" command.
-
General
Remove dead code
-
General
Fix cacheAllSounds() being called before .def parsing... oops!
-
General
Cast the nanoseconds to uint64_t before multiplying in timerGetTicks()
-
General
Move logic for timer type selection into its own function
-
General
Use -march=nocona for x86_64 builds
Show details
This appears to be preferable for producing generic x86_64 binaries these days.
-
General
Use -march=pentium-m for i686 builds
-
General
No more std::chrono!
-
General
Timer maintenance
-
General
Fix osdcmd_changelevel
-
General
This change to Gv_DivVar() is faster when benchmarked
-
General
Clean up CON_FOR a little
-
General
Change VS project DiagnosticsFormat option
-
General
Only use lfence with rdtsc
Show details
I was going to use the CPU vendor to determine whether to use mfence or lfence, but reading the links in the comments lead me to the conclusion that lfence is still the correct choice on AMD.
-
General
Start ripping out std::chrono because it sucks
-
General
Remove sound init messages from Shadow Warrior as they're emitted by the library itself now
-
General
Add snd_sdl_audiodriver cvar to select which audio backend SDL uses
Show details
This also cleans up the sound init messages a bit.
-
General
I'm pretty sure none of our output goes through the code path that uses this hint, but if it does we probably want the good one and not the crappy one
-
General
Don't write blank string cvars to settings.cfg
-
General
Remove driver_nosound from audiolib
Show details
Why? Because it's fucking useless. If we want to waste CPU on outputting nothing, SDL has us covered with its "dummy" audio backend.
-
General
Remove obsolete option to reverse the stereo channels
Show details
Anyone who plugged in their speakers backwards is SOL.
-
General
ENet fix to allow running on Windows XP again... completely untested tbh
Show details
This is not the only thing that breaks compatibility with XP, but this fixes the ENet part of it.
-
General
Add mus_winmm_device cvar to allow selecting the Windows MME MIDI output device
-
General
Add mus_xmp_interpolation cvar to control XMP interpolation mode
Show details
Full disclosure: changing the interpolation mode is practically useless. I was going to drop this commit from my tree, but a later commit doesn't merge without it and I didn't feel like dealing with it.
-
General
Only restart the sound system itself when pressing "apply" in the advanced sound setup menu if the playback rate or number of voices changed
-
General
MIDI shuffling
-
General
Use mouse wheel to scroll console and limit scroll area to the number of lines actually present
-
General
Use GrowArray<> to save individual lines of text printed to the console so we can rebuild the concatenated text buffer without fucked formatting when the console resolution changes
Show details
A proper solution would probably shitcan the big buffer altogether and just print the lines stored in the GrowArray<> directly, but this commit is not that.
-
General
Update console cvar descriptions
-
General
Change osdlogcutoff to control the maximum number of errors printed to the console
Show details
Previously osdlogcutoff controlled the max number of lines (error or otherwise) printed to the console, and the error limit was hard-coded at 4096. This seems more useful.
-
General
intitialization
-
General
Remove duplicate call to cacheAllSounds() from S_SoundStartup()
-
General
Move atoi_safe() from editor.h to compat.h and #define Batoi atoi_safe
Show details
They were the same thing so they might as well be in the same place.