Commit Graph
8933 Commits
Author SHA1 Message Date
Cameron Cawley da960cd939 GUI: Add EE to the GUI keymap 2021-04-18 15:28:51 +02:00
Lothar Serra Mari f288ab7e20 BACKENDS: OPENGLSDL: Flush config file after resize events 2021-04-18 15:16:52 +02:00
Eugene Sandulenko 0cba225a96 BACKENDS: OPENGL: Hiding noisy window size debug output deeper 2021-04-18 14:56:06 +02:00
Lothar Serra Mari ceca0b5ae8 GUI: Add support for GUI window sizing based on screen resolution 2021-04-18 14:41:29 +02:00
Cameron Cawley d33487f641 SDL: Refactor OpenGLSdlGraphics3dManager to inherit from SdlGraphicsManager 2021-04-17 20:32:27 +02:00
Eugene Sandulenko 91832bf9d8 SYMBIAN: Remove old Keys Dialog, now the global KeyMapper is used. PR#2712 2021-04-17 19:41:09 +02:00
Eugene Sandulenko 6778a80816 SYMBIAN: Do not compile unneeded stubs. Part of PR#2712 2021-04-17 19:41:09 +02:00
Orgad Shaneh b49e6eb96f JANITORIAL: Fix some excess tabs 2021-04-15 23:18:08 +03:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
lamebanana 8af0b8baa5 OPENGL: Fix aspect ratio bug when switching render 2021-04-14 20:33:59 +02:00
rsn8887 d3423ae991 VITA: Remove shaders, not supported with latest SDL2 2021-04-13 20:57:28 -05:00
rsn8887 fca3abd9ef SWITCH: Fix wrong zoom on SDL to GL transition again 2021-04-13 16:17:22 -05:00
Cameron Cawley 56e2107dc3 RASPBERRYPI: Remove outdated packaging rules 2021-04-13 19:56:55 +01:00
SupSuper 3eba076fa0 SDL: Fix null check in getDisplayDpiFromSdl 2021-04-13 19:27:31 +01:00
Cameron Cawley 125fe7162d SDL: Fix compilation with SDL 2.0.3 2021-04-13 17:18:29 +01:00
SupSuper d6ba073055 BACKENDS: OPENGLSDL: Only scale mouse cursor on high-DPI platforms
Some platforms send raw coordinates, others send scaled coordinates.
We try to determine this by comparing the window size and drawable size.
2021-04-12 18:38:45 +02:00
SupSuper 8fba77eefa BACKENDS: OPENGLSDL: Always use drawable size when resizing window
This corrects situations in SDL2 where the window size is not
the same as the drawable size, leading to incorrect rendering.
2021-04-12 18:38:45 +02:00
antoniou79 6afae47470 ANDROID: Add support for feature OSystem::kFeatureHiDPI
For testing purposes and feedback mostly

Also set the level for debug to 3, to get messages related to native resolution and scaling from the new hidpi gui scale code
2021-04-12 15:05:34 +03:00
rsn8887 044ea0b60e VITA: Use regular SDL2 graphics code, fixes crash with latest SDK 2021-04-11 19:56:34 -05:00
Cameron Cawley 24b59ecb4c Revert "OPENGL: Implement high DPI support on Android (#1895)"
This reverts commit 177d709909.
2021-04-12 00:54:12 +01:00
Eugene Sandulenko 708caaa8fa BACKENDS: SDL: Do not scale mouse position for LoDPI modes 2021-04-11 21:21:44 +02:00
Eugene Sandulenko fda5847789 BACKENDS: OPENGLSDL: Fix compilation with SDL1 2021-04-11 21:21:44 +02:00
Eugene Sandulenko f769cd6526 GUI: Fix oversized keymapper controls 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 7a23d859a5 BACKENDS: Lower hidpi scaling to factor of 1.5 2021-04-11 21:21:44 +02:00
Eugene Sandulenko c06d47e397 COMMON: Added kFeatureHiDPI and return it from the backend 2021-04-11 21:21:44 +02:00
Eugene Sandulenko bb15133a0a BACKENDS: OPENGLSDL: Fix switching to full screen with Alt+Enter 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 5e395d166a BACKENDS: HiDPI support in OpenGL backend 2021-04-11 21:21:44 +02:00
Orgad Shaneh 50f7d7d017 CLOUD: Fix compiler warnings on linux64
uint64 is unsigned long on linux64 (first match in
configure:find_type_with_size), so the format should be lu, but this is
incompatible with Win64, so just cast to make it portable and warning-
clean.

Amends commit 1496ad6bb5.
2021-04-09 18:19:28 +01:00
Thierry Crozat b6186ccdd6 OPENGL: Fix hidden overladed virtual saveScreenshot() warning
This noisy warning at least occur when building for Android
(OpenGL, but not SDL).
2021-04-07 00:09:50 +01:00
Thierry Crozat 7408dee5df Revert "GRAPHICS: Tentative fix saveScreenshot() warning for OpenGL"
This reverts commit 0f118d0210.
2021-04-07 00:09:50 +01:00
Cameron Cawley ef0048fa77 COMMON: Add standard actions for mouse button clicks 2021-04-06 11:15:42 +03:00
Orgad Shaneh be2b8e7ba5 MAKEFILE: Add dependencies for scummvm.rc (#2919)
When an engine is added or removed, it affects the embedded resources in
scummvm.rc, so config.mk is required.

+ Add some missing dependencies in win32.mk.
2021-04-06 10:27:48 +03:00
Cameron Cawley cf511755b0 SDL: Improve graphics mode checks 2021-04-05 20:31:05 +01:00
Cameron Cawley a1890ede9c BASE: Avoid calling PluginMan.getEngineFromMetaEngine where possible 2021-04-05 15:33:23 +01:00
antoniou79 0f118d0210 GRAPHICS: Tentative fix saveScreenshot() warning for OpenGL
Building for Android (OpenGL) had noisy warning for hiding overloaded virtual function

Added a dummy implementation in OpenGLGraphics manager, and also for OpenGLSdlGraphicsManager it now explicitly calls the SdlGraphicsManager implementation for the void argument signature.
2021-04-03 14:03:36 +03:00
Thierry Crozat bbff87e74e NETWORKING: Fix unknow key error when using local server 2021-03-31 22:01:23 +01:00
Orgad Shaneh e7a9bf203f BACKENDS: Fix MinGW warnings on GetProcAddress usages
Example:
../scummvm/backends/platform/sdl/win32/win32_wrapper.cpp:39:52: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VerSetConditionMaskFunction' {aka 'long long unsigned int (*)(long long unsigned int, long unsigned int, unsigned char)'} [-Wcast-function-type]
   39 |  VerSetConditionMaskFunction verSetConditionMask = (VerSetConditionMaskFunction)GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "VerSetConditionMask");
      |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-03-31 02:13:07 +03:00
Orgad Shaneh 3dac89a267 BACKENDS: Sprinkle some overrides 2021-03-31 02:04:47 +03:00
Eugene Sandulenko e844981cd0 BACKENDS: MACOS: Query number of MIDI devices at the start of ScummVM in a thread
The call to MIDIGetNumberOfDestinations() starts the MIDI server which takes
3-4l seconds even on the modern hardware. We are querying this in the GUI Options
which then lags on the first launch.

Thus, we are creating a separate thread and make this call at the start of
ScummVM, so by the time the user gets to the GUI, the server is already launched
and there is no lag.

Of course, that would mean that we will launch MIDI even for the games which are
not using it, so this is a tradeoff for the better UX.
2021-03-29 20:25:37 +02:00
mataniko 28a1a0d3f1 TTS: Fix builds when cross compiling 2021-03-28 17:17:55 -04:00
mataniko c67fd1b63a TTS: Fix UI lag when TTS is turned on in Windows
Without specifying the XML format, SAPI throws a hidden exception that stalls the GUI every time we use TTS
2021-03-28 14:07:36 -04:00
antoniou e69e149bd0 ANDROID: Support multiple right click with one finger down
If the user keeps one finger down they can still generate new right click events

Previously in multitouch events, we supported only one right click event starting from one finger down.
The user subsequently had to restart the multitouch mode for another right click; hence lift all fingers
from the surface and start again.
New behavior allows user to generate a new right click while holding one finger down and putting down and lifting a second finger.
I think this is more intuitive and user friendly, although it might require some getting used to, if one was accustomed to the old behavior
2021-03-28 20:59:39 +03:00
Thierry Crozat bcab931115 SDL: Fix crash when switching from OpenGL to another graphics mode
The crash was introduced in commit 12878afc0 and this reverts part
of the changes in that commit.
2021-03-26 00:00:48 +02:00
Orgad Shaneh 1496ad6bb5 CLOUD: Fix format for uint64 variables 2021-03-25 08:23:44 +02:00
Le Philousophe bdf012d016 GPH: Don't call DownscaleSdlGraphicsManager anymore
They are gone.
2021-03-16 16:01:38 +02:00
Le Philousophe 584f82d895 GPH/DINGUX: Fix build
Downscaling code has been removed
2021-03-16 08:33:44 +01:00
Cameron Cawley cc328d9cfa ANDROID: Remove README.Android 2021-03-15 18:39:39 +02:00
Cameron Cawley 76b25ec1c3 GUI: Add a checkbox to allow overriding the global backend settings 2021-03-15 16:52:52 +02:00
Cameron Cawley 8aa3e53132 SDL: Replace the use of the normal scaler for the cursor 2021-03-15 16:48:40 +02:00
Cameron Cawley b596ebf8b8 GRAPHICS: Remove use of gBitFormat from the aspect ratio code 2021-03-15 16:48:40 +02:00