yquake2remaster/src
Yamagi 5a21397761 Refactor refreshrate handling from int to float.
With SDL 2 the refreshrate handling was rather limited by SDL 2 only
supporting integer refreshrates, making it impossible to represent the
common 59.95hz and other non-integer refreshrates. Quake II works around
this by assuming a refreshrate of 2hz higher than returned by SDL.

SDL 3 finally supports float refreshrates. Refactor the internal API to
also use floats.

This should be a no-op since the 'refreshrate * 1.02' logic stayes in
place for the time being. This can be reevaluated at a later time for
the SDL 3 build, but needs testing.

As a nice side effect fix the `vid_displayrefreshrate` cvar. It was
broken in both SDL 2 and 3 since it was always overwritten with the
actual display refresh rate.
2024-04-07 11:01:44 +02:00
..
backends More min\max function renaming 2023-12-04 22:59:31 +11:00
client Refactor refreshrate handling from int to float. 2024-04-07 11:01:44 +02:00
common Refactor refreshrate handling from int to float. 2024-04-07 11:01:44 +02:00
game Preview of the coming weapon for weapprev/weapnext 2023-12-16 17:52:00 -03:00
server "constifying" where underlying C calls expect compile time constants. 2023-09-16 16:20:21 +01:00
win-wrapper quake2.exe wrapper puts Q2 window in foreground 2019-05-08 03:04:12 +02:00