Commit Graph
14 Commits
Author SHA1 Message Date
Gareth Francis 60c3dcd3d7 Add WITH_MINIMAID option to allow building on ARM 2024-05-30 17:38:47 -07:00
Gareth Francis 99e3d10775 Reduce rate of X11 screensave interrupt to once/minute 2024-04-19 00:29:35 -07:00
Gareth Francis 85bac5506e Prevent sound fade in/out from hitting assertion in fapproach 2024-04-11 10:59:03 -07:00
Gareth Francis befae57e73 InputHandler_Linux_Joystick cleanup 2024-04-10 20:17:11 -07:00
Gareth Francis ef86cbbda3 Remove limit of 4 joysticks in InputHandler_Linux_Joystick 2024-04-10 20:17:11 -07:00
Gareth Francis 7009a16dea RageUtil::UnicodeUpperLower: Prevent negative characters from segfaulting under GCC 2024-04-10 14:09:10 -07:00
Gareth Francis f39ed52dbf Remove calls to dwmFlush - Were never called before and cause frame drops with opengl renderer 2023-03-29 13:01:01 -07:00
Gareth Francis aeb5c7598f Handle exceptions in int conversions (#2092)
* RageUtil: Add exception-safe wrappers around std::stoi, stol, stoll

* Replace use of std::stoi with exception-safe StringToInt
2021-02-15 12:36:51 -08:00
Gareth Francis d4ca6f8a43 Fix selection logic for sound libraries
HAS_XX is used elsewhere in the project to select optional sources,
will only be true if the lib is available on the system, and the
user asked to use it.
2019-06-30 12:07:56 +01:00
Gareth Francis e7b8cc2785 Preserve event timestamps in X11 input driver
The X11 XKeyEvent structure (and others) include a timestamp
field, with 1ms resolution.
This was previously ignored causing the input timestamps to be
set to the middle of each frame.
If the timestamps are passed through then the event timestamps are
not coupled to the framerate and the polling issues are resolved.
2018-06-08 17:19:51 +01:00
Gareth Francis 144fba2e15 Bugfix/1698 linux event m_bShutdown undefined (#1699)
* Fix build
2018-06-07 13:17:02 -07:00
Gareth Francis 252e1e7b1f Initialise variables to ensure input thread is started (#1696)
* Initialise variables to ensure input thread is started

m_bShutdown was not initialised. This meant that the input
thread would never be started seemingly at random.

In my case m_bShutdown was always false when running in fullscreen
but not in windowed mode for some reason
2018-05-26 04:30:19 -07:00
Gareth Francis 23889bd7c8 Avoid crash in ~LightsDriver_SystemMessage (#1663)
* Avoid crash in ~LightsDriver_SystemMessage

This will avoid a crash caused by the fact LIGHTSMAN is destroyed
after the other MAN objects

* Rework code path for turning lights off on exit

Calls to LightsDriver::reset removed from each driver to avoid any crashes

LightsDriver::reset renamed to Rest to match surrounding style

Added LightsManager::TurnOffAllLights, called before XXXMAN objects are deleted
2018-05-10 18:04:44 -07:00
Gareth Francis 1369c1fb39 Turn lights out on exit (#1646)
* Add LightsDriver::reset

Function will reset all lights to off
Function needs to be called by each of the driver implementations
as needed during destruction

* Reset lights to off on exit
2018-02-28 11:52:01 -08:00