Thierry Crozat
bf406f66c0
BACKENDS: SDL: Do not allocate memory in SurfaceSdlGraphicsManager::getSupportedGraphicsModes
2021-05-08 21:58:30 +01:00
Orgad Shaneh
a05e54f00c
JANITORIAL: Remove trailing whitespaces
2021-05-04 11:46:30 +03:00
Martin Gerhardy
9d82fa51df
COMMON: removed USE_TTS check from engines
...
OSystem now just returns a nullptr if there is no text to speech manager instance
(because none is compiled into the binary, or the system doesn't provide support
for it). This removed the need for the engine authors to add scummvm osystem compile
time options checks into their engine code
2021-05-03 14:13:41 +03:00
Eugene Sandulenko
e2d65a4ba8
BACKENDS: OPENGL: Comment out noisy warning
2021-05-02 17:47:41 +02:00
SupSuper
60f1fd98aa
SDL: Use the window display index when querying display modes
2021-05-01 11:22:22 +03:00
Lothar Serra Mari
db52dde75d
BACKENDS: OPENGLSDL: Fix typo while initializing _windowIsMaximized state
2021-04-28 14:36:46 +02:00
Lothar Serra Mari
1b68301540
BACKENDS: OPENGLSDL: Properly handle maximized windows
2021-04-27 07:25:22 +02:00
Eugene Sandulenko
50e6460fe2
BACKENDS: OPENGL: Add workaround for macOS window size memorizing
2021-04-19 13:10:25 +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
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
fca3abd9ef
SWITCH: Fix wrong zoom on SDL to GL transition again
2021-04-13 16:17:22 -05: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
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
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
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
cf511755b0
SDL: Improve graphics mode checks
2021-04-05 20:31:05 +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
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
Le Philousophe
bdf012d016
GPH: Don't call DownscaleSdlGraphicsManager anymore
...
They are gone.
2021-03-16 16:01:38 +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