8254 Commits

Author SHA1 Message Date
Thierry Crozat
7408dee5df Revert "GRAPHICS: Tentative fix saveScreenshot() warning for OpenGL"
This reverts commit 0f118d0210d1dc1d4e4174fd72179de82b263ed8.
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
Cameron Cawley
40ee8ae527 SDL: Fix filtering with SDL 1.2 2021-03-15 16:48:40 +02:00
Cameron Cawley
f6c8207684 SDL: Minor cleanup to the aspect ratio code 2021-03-15 16:48:40 +02:00
Cameron Cawley
035f5798c4 SDL: Remove the old graphics mode enum 2021-03-15 16:48:40 +02:00
Cameron Cawley
621c4c2e9e SDL: Fix implementation of getGraphicsModeScale 2021-03-15 16:48:40 +02:00
Cameron Cawley
21c1f0d007 SDL: Restore keyboard shortcuts for switching scalers 2021-03-15 16:48:40 +02:00
Cameron Cawley
4df5e9ed51 SDL: Fix crash with small cursors when using AdvMame4x 2021-03-15 16:48:40 +02:00
Cameron Cawley
99acdb00f9 SDL: Fix crash when switching from OpenGL to Edge3x 2021-03-15 16:48:40 +02:00
Cameron Cawley
e50e010a9e SDL: Fix compilation when building without RGB colour support 2021-03-15 16:48:40 +02:00
Cameron Cawley
12878afc06 SDL: Fix building without scalers 2021-03-15 16:48:40 +02:00
Johannes Schickel
5dc207a386 SDL: Properly handle extra pixels for scalers in showOverlay. 2021-03-15 16:48:40 +02:00
Johannes Schickel
8825c9e3b4 GRAPHICS: Keep destination buffer in SourceScaler instead of SDL backend. 2021-03-15 16:48:40 +02:00
Johannes Schickel
23bee4de30 SDL: Properly look up the normal scaler plugin. 2021-03-15 16:48:40 +02:00
Johannes Schickel
e8d0182cd5 SDL: Take advantage that each ScalerPluginObject can use a scale factor of 1. 2021-03-15 16:48:40 +02:00
Johannes Schickel
b225858e41 GRAPHICS: Let ScalerPluginObject::setFactor return the old factor.
This simplifies things a bit.
2021-03-15 16:48:40 +02:00
Johannes Schickel
ee438bebc2 SDL: Disable more AR related code when USE_ASPECT is not defined. 2021-03-15 16:48:40 +02:00
Cameron Cawley
b78323897d SDL: Fix compilation 2021-03-15 16:48:40 +02:00
Martin T. H. Sandsmark
9296b92d8f fix crash on exit 2021-03-15 16:48:40 +02:00
Martin T. H. Sandsmark
ab000b6ae3 fix cursor 2021-03-15 16:48:40 +02:00
Martin T. H. Sandsmark
fcff230fe8 fix build 2021-03-15 16:48:40 +02:00
Martin T. H. Sandsmark
f4f9957f85 scalerplugin: port to new plugin api 2021-03-15 16:48:40 +02:00
Eric Culp
39608f391c SDL,GRAPHICS: Add option for AR correction without scalers 2021-03-15 16:48:40 +02:00
Eric Culp
b80c7908fa SDL: Update comments for scaling mouse cursor 2021-03-15 16:48:40 +02:00
Eric Culp
d8240fa734 SDL: Initialize plugins when formats change. 2021-03-15 16:48:40 +02:00
Eric Culp
c7121fae65 SDL: Fix formatting for pointers. 2021-03-15 16:48:40 +02:00
Eric Culp
e35a7c72c0 SDL: Cache default graphics mode upon initialization. 2021-03-15 16:48:40 +02:00
Eric Culp
88363d5d36 SDL: Fix error when USE_SCALERS is undefined 2021-03-15 16:48:40 +02:00
Eric Culp
f9569ea2ff SDL: Fix formatting 2021-03-15 16:48:40 +02:00
Eric Culp
ee008a44b1 SDL: Formatting fix 2021-03-15 16:48:40 +02:00
Eric Culp
cbf9072e45 SDL: Fix leaks related to graphics modes
supportedGraphicsModes() now returns to OSystem_SDL a pointer to a deep copy of
surfacesdl's internal graphics mode array. Therefore each can free its
own copy without interfering with the other's.
2021-03-15 16:48:40 +02:00