Commit graph

45 commits

Author SHA1 Message Date
staphen
8d5b709749 Restore default Windows audio driver (WASAPI) 2022-02-03 06:40:59 +01:00
Felipe Wannmacher
8efbcf2058
Xbox One/Series support (#3946) 2022-01-17 12:37:29 +01:00
Anders Jenbo
0c109cbfb1 [touch] Update interface scaling when switching fullscreen mode 2022-01-02 11:37:38 +01:00
Anders Jenbo
6b2481a76c Touch support on all SDL2 platforms 2022-01-02 11:37:38 +01:00
Anders Jenbo
68e5805f1b [touch] Adjust controller position after changing resolution
Fixes #3791
2021-12-21 12:55:30 +01:00
Anders Jenbo
cf9b5ae79d Split up graphics settings initializers 2021-12-21 12:55:30 +01:00
Anders Jenbo
0e2aac8cfe Allow for software based rendering 2021-12-21 12:55:30 +01:00
Anders Jenbo
24a15d90e2 Do not recreate the render when switching scalingn quality 2021-12-21 12:55:30 +01:00
Anders Jenbo
7d239d9f89 Scale resolution to true values 2021-12-18 20:55:14 +01:00
ephphatha
530604c529 Prefer DX11 renderer if running on windows with vsync active
This works around a bug in DX9 on Win11.
2021-12-17 14:10:55 +01:00
staphen
3a802ae270 Apply clang-format to display.cpp 2021-12-09 13:02:05 -05:00
Anders Jenbo
94fa772ce6
Fix SDL < 2.0.10 builds 2021-12-09 17:42:48 +01:00
Anders Jenbo
901d9aa435 Fix SDL < 2.0.6 builds 2021-12-09 16:50:47 +01:00
JoBergeron
6af1be7b13
[ios] Fixed bluetooth mouse support 2021-12-09 16:42:47 +01:00
obligaron
5e2ad66e64 Add OptionEntry Resolution 2021-12-08 00:37:06 +01:00
staphen
f897f5fd92 Resize PalSurface when resizing the game window 2021-12-07 10:11:15 +00:00
Anders Jenbo
d9d72fbbc7 [ios] Enable high resolution support 2021-12-06 22:01:02 +01:00
qndel
82a5b6315c
fix typo 'prefered' (#3677) 2021-12-05 15:17:41 +01:00
Anders Jenbo
157570a1f2 Handle screen orientation 2021-12-05 15:09:30 +01:00
obligaron
2e5a488d5f Add OptionEntry for graphics 2021-12-05 02:00:27 +01:00
obligaron
eb7b9d7054 Introduce ResizeWindow() 2021-12-05 02:00:27 +01:00
obligaron
b5aab383d9 Introduce ReinitializeRenderer() and GetPreferedWindowSize() 2021-12-05 02:00:27 +01:00
obligaron
21e04d3352 Add OptionEntry Grab Input 2021-11-24 09:31:39 +01:00
obligaron
af4f732ef1 Add OptionEntry Scaling Quality 2021-11-24 09:31:39 +01:00
obligaron
677303cba9
Reduce use of view globals in game menu 2021-11-20 21:57:32 +01:00
staphen
b5d96665c9 Enable SDL1 build option for Windows 2021-11-05 10:34:51 +01:00
Vladimir Olteanu
b87058a717 Error checking for GetOutputSurface 2021-09-13 23:07:04 +02:00
Vladimir Olteanu
4edafd2e37 Make RendererTextureSurface a SDLSurfaceUniquePtr 2021-09-13 23:07:04 +02:00
Vladimir Olteanu
cc9ea97e0f Introduce SDLWrap::CreateTexture 2021-09-13 23:07:04 +02:00
Vladimir Olteanu
5d54f8d322 Introduce SDLWrap::CreateRGBSurface 2021-08-19 08:51:59 +02:00
obligaron
26e61b363b demo: Centralize options override 2021-08-19 00:04:57 +02:00
obligaron
77f9bded9e Introduce demo namespace 2021-08-19 00:03:58 +02:00
Anders Jenbo
eda4a5061e Implement demo recording and playback
This records all keyboard and mouse events to a file and lets you play
it back at a later point with a differen game speed.
2021-07-31 20:12:31 +02:00
Anders Jenbo
3affe2eb2a Fix SDL1 builds 2021-06-20 00:23:13 +02:00
Anders Jenbo
9dd7de027f Limit screen to landscape mode 2021-06-20 00:17:54 +02:00
Anders Jenbo
0227519267 Enable mouse emulation for Android
As a temporarly solution untill we implement a proper virtual controller
2021-06-15 00:23:35 +02:00
Gleb Mazovetskiy
cb9da2cadc 🎉 SDL1: An option to render directly to video mem
Now that we no longer have a buffer border, we can render directly to
the video memory if the output surface is 8-bit and double buffering is
enabled.

Also adds a flag to force this even when double buffering is disabled,
because some systems emulate 8-bit mode with something else, so the
output is always buffered.

This required a tweak to the cursor to make sure that we clear it after
`SDL_Flip`.
2021-05-13 03:17:45 +02:00
Gleb Mazovetskiy
1181cc68ac 🎉 Remove buffer padding
The padding is no longer needed
2021-05-11 07:57:08 +02:00
staphen
5483b29a31 Set 3DS scaling behavior based on FitToScreen setting. 2021-05-09 00:31:13 +01:00
Gleb Mazovetskiy
57172e48ed 🔨 ⚙️ CMake: Add NOSOUND option
This option completely disables all audio handling, including audio
loading code and dependencies.

Dialog text length is estimated to be somewhere between
Cain and Griswold speed.
2021-04-29 19:43:45 +02:00
Jmgr
1b7e0d2cb3 Migrate existing log entries 2021-04-25 02:39:42 +02:00
Anders Jenbo
cc164985a3 🎨 Correct type checks in src sub-folder 2021-04-22 20:33:24 +02:00
Anders Jenbo
b978d80119 🎨 llvm-include-order 2021-04-19 20:11:20 +02:00
Anders Jenbo
bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Anders Jenbo
8c821e98d3 🚚 Restructure files 2021-04-16 03:57:22 +02:00
Renamed from SourceX/display.cpp (Browse further)