SupSuper
60f1fd98aa
SDL: Use the window display index when querying display modes
2021-05-01 11:22:22 +03:00
Cameron Cawley
d33487f641
SDL: Refactor OpenGLSdlGraphics3dManager to inherit from SdlGraphicsManager
2021-04-17 20:32:27 +02: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
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
7a23d859a5
BACKENDS: Lower hidpi scaling to factor of 1.5
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
Cameron Cawley
21c1f0d007
SDL: Restore keyboard shortcuts for switching scalers
2021-03-15 16:48:40 +02:00
Thierry Crozat
5412533dec
SDL: Fix trying to set unsupported pixel format when changing gfx mode
...
When switching between the SDL and OpenGL graphics managers, trying
to restore the state could fail as the two managers do not have the
same list of supported formats, so we may not be able to transfer
the pixel format from one to the other. This then resulted in an
assert.
This fixes bug #12079
2021-02-08 12:59:52 +00:00
Cameron Cawley
d968d22eb1
SDL: Refactor grabbing and locking the mouse ( #2522 )
2020-10-14 08:03:31 +02:00
Cameron Cawley
26cd7d44e2
SDL: Implement lockMouse() in the 2D graphics managers ( #2517 )
2020-10-13 21:31:10 +02:00
Paweł Kołodziejski
59ba9cb715
SDL: Do not allow toggle fullscreen for backends which can lose opengl context used for 3d games. ( #2514 )
2020-10-13 20:27:58 +02:00
Paweł Kołodziejski
35b9cccbde
ALL: Merge ResidualVM
2020-10-09 19:44:13 +02:00
Pawel Kolodziejski
d8f2040dba
ALL: Drop setupScreen API, use new initGraphics3d from engine API.
...
Enabled system API for begin/end gfx transactions, initSize, setGraphicsMode.
Function setGraphicsMode will use optional params to trigger 3d rendering
and switch to proper SDL Gfx manager.
2020-10-02 19:14:19 +02:00
Pawel Kolodziejski
6f69981904
BACKENDS: Drop launcherInitSize() and use 2d backend gfx manager for launcher.
2020-09-30 16:52:44 +02:00
Pawel Kolodziejski
6aa7cf6025
BACKENDS: Made code less different in SDL platform backend
2020-09-29 15:08:16 +02:00
Cameron Cawley
5cb84a437d
SDL: Clip the coordinates sent by mouse events
2020-09-27 00:32:01 +01:00
Pawel Kolodziejski
11b9f5d81c
BACKENDS: More renames in GFX backends
2020-09-25 10:35:26 +02:00
Pawel Kolodziejski
15a759370a
ALL: Synced with ScummVM - rev: bdbbcd81ae
2020-09-12 19:38:50 +02:00
Pawel Kolodziejski
d5304e2568
ALL: Synced with ScummVM - rev: 33a47d23b8
2020-09-03 02:21:14 +02:00
aryanrawlani28
a9bfe35216
GUI: U32: More issue fixes and general improvements
...
- Use the fake constructor for message dialog less often
- solve errors regarding comparision between string and u32string in midi
- solve errors in testbed/speech related to ttsMan->say
- fix unsigned comparision warning in tab.cpp
- fix issue with static strings and translations in sdl-graphics
2020-08-30 14:43:41 +02:00
aryanrawlani28
f800ca4ada
GUI: U32: Convert majority of code to use U32
...
This commit also includes some additional major changes.
- Return U32String from TransMan getTranslation()
- Change tooltips to be U32Strings
- Remove temporary code of convertToU32String
- U32 Support various dialogs (Browser, FileBrowser, Messages, Chooser, etc)
- U32 for music plugins
- U32 for OSD messages
- Add some helper functions to ustr.cpp
- Change default tooltips from nullptr & 0 -> ""
- Some runtime exceptions may occur when changing languages due to incorrect String::Format
2020-08-30 14:43:41 +02:00
Pawel Kolodziejski
949d251fc5
BACKENDS: Fixed typo in name
2020-08-29 15:14:40 +02:00
Pawel Kolodziejski
8f4e1c6cf3
Sync with ScummVM rev. 654b8208b8
2020-06-22 08:14:16 +02:00
SupSuper
fa615bc52f
BACKENDS: Fix inconsistent usage of const modifier
...
Fixes warnings from mismatching method signatures between parent and child managers
2020-05-30 06:49:09 +01:00
Pawel Kolodziejski
6e02b9d5d6
SDL: Based on PR #1624 and more sync with ScummVM
2020-05-12 23:46:03 +02:00
Pawel Kolodziejski
d01d06216f
SDL: Move detection of the desktop resolution into the SdlWindow class
2020-05-10 23:04:31 +02:00
Cameron Cawley
f8a883f2b1
SDL: Unify implementations of activateManager and deactivateManager
2020-05-10 12:02:44 +01:00
Pawel Kolodziejski
bd32585c45
ALL: Added missing files, don not enable docker plugin
2020-05-09 20:58:00 +02:00
Pawel Kolodziejski
b586571900
ALL: synced with ScummVM commit 09bf38c120
2020-05-09 20:05:54 +02:00
Paweł Kołodziejski
b5d73d4c22
Revert "SDL: Move detection of the desktop resolution into the SdlWindow class"
2020-04-17 17:59:36 +02:00
Cameron Cawley
bf2e80a183
SDL: Move detection of the desktop resolution into the SdlWindow class
2020-04-16 17:18:53 +01:00
Cameron Cawley
205175c4e5
SDL: Don't allow switching to and from fullscreen if it isn't supported
2020-03-27 22:50:41 +01:00
Bastien Bouclet
d94c7c3bcc
SDL: Move the keyboard mouse to a subclass of SdlEventSource
...
And deprecate it. The new Virtual Mouse system is expected to replace
it.
2020-03-09 20:00:31 +01:00
Bastien Bouclet
7daf2a4f5b
SDL: Add back Alt+KP_ENTER as a shortcut for toggle fullscreen
...
Fixes #11341 .
2020-02-04 08:22:02 +01:00
Bastien Bouclet
426867f4bc
KEYMAPPER: Give human readable descriptions to the keymaps
2020-01-29 08:51:29 +01:00
Bastien Bouclet
13fbdb935a
KEYMAPPER: Use custom backend actions for the SDL graphics keymap
2020-01-29 08:51:29 +01:00
Bastien Bouclet
be49fc4b9a
SDL: Add a keymap for the graphics manager
2020-01-29 08:51:29 +01:00
Bastien Bouclet
0339b9a6bf
SDL: Use the name of the running target as a base for screenshot files
2020-01-22 21:27:38 +02:00
Cameron Cawley
f2b9f7bb76
BACKENDS: Remove the Windows CE port
2019-11-17 22:33:56 +01:00
sluicebox
b593fe2f45
SDL: Fix Windows screenshots with unicode paths
...
Use Common::FSNode to test for screenshot existence instead of
SDL_RWFromFile(). SDL does different character encoding conversions
which fail on Windows when a unicode character is in the path.
Fixes bug #11118
2019-11-10 07:08:22 +02:00
Bastien Bouclet
93929be2c1
SDL: Use the current screen resolution when switching to fullscreen
...
Previously we used the resolution of the first screen. Fixes being
unable to switch to fullscreen when using two screens with different
resolutions.
2019-11-01 13:29:01 +01:00
Cameron Cawley
177d709909
OPENGL: Implement high DPI support on Android ( #1895 )
...
* OPENGL: Implement high DPI support on Android
* PSP2: Fix build
2019-11-01 13:39:46 +02:00
Cameron Cawley
ea9e33bd10
GUI: Check if fullscreen is available at runtime
2019-08-18 06:21:28 +03:00
Bastien Bouclet
d474e3f94f
ALL: Sync with ScummVM - rev. ea3f8f2e33
2019-06-29 19:08:44 +02:00
Bastien Bouclet
113b9132b7
GUI: Add a drop down menu to select the anti aliasing level
2019-05-30 11:44:50 +02:00
Cameron Cawley
e40cdea6ba
SDL: Use Common::KEYCODE_KP_ENTER instead of SDLK_KP_ENTER
2019-04-02 22:41:21 +01:00
Orgad Shaneh
64a4d498ce
Fix mouse going out of bounds in fullscreen
...
The coordinates were translated, but this was done on a copy
instead of overwriting the original object.
2019-04-01 21:12:33 +03:00