Commit graph

359 commits

Author SHA1 Message Date
aryanrawlani28
1ca1712b4d GUI: U32: Fix problems with u32strings formatting
- Improve U32's format helper
- Add insertString helper to u32
2020-08-30 14:43:41 +02:00
aryanrawlani28
d4d5b8906e GUI: U32: Begin making TTS take in U32Strings for saying
Only for strings without an explicit action. The first level takes in a u32 string, encodes it, and passes it along further with the default action

- For gui widgets, the strings are passed in as native u32 strings.
- For everything else, they are being converted to u32 by Common::convertToU32... and then being passed along
2020-08-30 14:43:41 +02:00
aryanrawlani28
b9a449480b GUI: U32: Remove u32::format references
- Removed because implicit conversion can simply handle this usecase
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
Cameron Cawley
cf068bcc08 ALL: Remove direct use of OSystem::createMutex() 2020-08-21 09:39:00 +02:00
Cameron Cawley
a55ea5d152 SDL: Simplify code for taking screenshots 2020-06-13 17:06:02 +02:00
Pawel Kolodziejski
6e02b9d5d6 SDL: Based on PR #1624 and more sync with ScummVM 2020-05-12 23:46:03 +02:00
mataniko
2f5eb14d4b JANITORIAL: Rename additional RTL references and comments 2020-05-12 10:36:38 +02:00
Cameron Cawley
f8a883f2b1 SDL: Unify implementations of activateManager and deactivateManager 2020-05-10 12:02:44 +01:00
Pawel Kolodziejski
b586571900 ALL: synced with ScummVM commit 09bf38c120 2020-05-09 20:05:54 +02: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
Cameron Cawley
d205578d4d SDL: Add a separate function for setting the hardware size 2020-03-16 01:30:05 +02:00
Cameron Cawley
0fbfeaf21b SDL: Move all shader code into PSP2SdlGraphicsManager 2020-03-09 18:01:14 -05:00
Cameron Cawley
5fd8aed047 SDL: Move the compatibility functions into SurfaceSdlGraphicsManager 2020-03-09 22:15:45 +02:00
Eugene Sandulenko
75ba54aa3e BACKENDS: Remove LinuxMoto port.
This was a relatively short-lived port. We have it broken and
disabled on the buildbot since 2016. Also, the last builds
were provided in 2011. Thus, it makes a little sense to continue
to keep the code in the repository, as it gets bitrot.
2020-03-09 14:31:14 +01:00
Paul Gilbert
7b721eaac1 ENGINES: Adding debugger to base Engine class 2020-02-16 13:07:19 +02:00
Eugene Sandulenko
6817478967 BACKENDS: SDL: Add override keywords 2020-01-31 12:39:23 +01:00
Bastien Bouclet
8a8336328e SDL: Fix build with SDL1 2020-01-29 09:11:37 +01:00
Bastien Bouclet
13fbdb935a KEYMAPPER: Use custom backend actions for the SDL graphics keymap 2020-01-29 08:51:29 +01:00
Cameron Cawley
e2e72af31d SDL: Remove duplicated cursorStretch200To240() function 2019-12-25 08:52:19 +02:00
D G Turner
d0592f379f SURFACESDL: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-30 19:53:11 +00:00
sluicebox
8057cfa38f SDL: Implement horizontal shake 2019-11-19 00:20:40 +01:00
sluicebox
b8390fa161 GRAPHICS: Add interface for horizontal shake 2019-11-19 00:20:40 +01:00
Cameron Cawley
f2b9f7bb76 BACKENDS: Remove the Windows CE port 2019-11-17 22:33:56 +01:00
Cameron Cawley
d1fa1154fe BACKENDS: Fix using fillScreen in non-paletted screen modes 2019-11-10 01:25:46 +02: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
1699a2e1cf SURFACESDL: Properly distinguish between 555 and 565 modes 2019-09-21 22:19:07 +03:00
Jaromir Wysoglad
bbbb608c52 TTS: Implement OSD message reading 2019-09-01 22:47:55 +03:00
D G Turner
54c465ef17 BACKENDS: Fix GCC Warnings in Surface SDL Graphics
This removes the usage of memset to clear complex structures and replaces
them with constructor methods for the structures which will be executed
when these are instantiated.
2019-08-15 16:26:53 +01:00
Cameron Cawley
1feb86ee97 BACKENDS: Handle screen shaking in WindowedGraphicsManager 2019-08-15 02:01:21 +03:00
rsn8887
5b32f377a9 BACKENDS: add Fit to window (4:3) stretch mode to SDL2 backend 2019-08-13 20:42:56 -05:00
Cameron Cawley
30234728d6
SDL: Removed invalid override from getGraphicsScalerProc() 2019-08-11 12:42:56 +01:00
Cameron Cawley
9b6461122e SDL: Move selecting the required ScalerProc into a separate function 2019-08-11 14:27:52 +03:00
Bastien Bouclet
d474e3f94f ALL: Sync with ScummVM - rev. ea3f8f2e33 2019-06-29 19:08:44 +02:00
Paweł Kołodziejski
776d7380d0 SDL: Another attempt to fix SDL1 compilation 2019-06-01 12:08:53 +02:00
Paweł Kołodziejski
7408699293 SDL: Fixed compilation for SDL1 2019-06-01 11:44:26 +02:00
Bastien Bouclet
119ff7f2f3 SDL: Don't include png.h when building without libpng
Should make possible to build on AmigaOS 4 where the Image namespace
conflicts with a struct from the SDK.
2019-05-19 14:07:00 +02:00
Cameron Cawley
62fc4c94bf SDL: Fix compilation without 16 bit colour support 2019-03-31 15:03:09 +03:00
Cameron Cawley
f426ba6c36 SDL: Move fullscreen and screenshot event handling to SdlGraphicsManager (#1522) 2019-03-10 18:25:25 +02:00
Cameron Cawley
342733cee6 SDL: Add a function to convert from SDL_PixelFormat to Graphics::PixelFormat 2019-03-03 13:44:10 +01:00
Cameron Cawley
205df5dbdf IMAGE: Fix taking screenshots on big endian systems 2019-03-02 07:29:22 +01:00
DouglasLiuGamer
d4d6e6203b SDL: Implement screenshot saving 2019-02-23 09:52:09 +01:00
Thierry Crozat
3b542cea53 SURFACESDL: Respect filtering setting when performing aspect ratio correction 2018-10-24 23:34:41 +02:00
Bastien Bouclet
ef0155a50c OPENGL: Allow the window to be resized
Fixes #1500.
2018-10-13 18:33:01 +02:00
Hubert Maier
5643a1ea09
SDL: Enhance warnings
Every other SDL warning/error states that it is related to SDL in the output, except those four warnings in surfacesdl-graphics.cpp and openglsdl-graphics.cpp.

Adding those crucial information to the output
2018-07-25 09:08:24 +02:00
Cameron Cawley
d93fe85994 BACKENDS: Fix compilation with SDL 1.2 2018-07-08 22:20:28 +01:00
Thierry Crozat
89f1b1c96e GUI: Add Stretch Mode selection in Options dialog 2018-07-08 16:54:51 +01:00
Thierry Crozat
812ce59ee4 SDL: Implement stretch mode API
Four modes are supported:
 - Use original size with no scaling
 - Scale by an integral amount as much as possible but not bigger
   than the window.
 - Scale to fit the window while respecting the aspect ratio. There
   may be black bars on the left and right, or on the top and bottom,
   but not both. This is the default, and the old behaviour.
 - Scale and stretch to fit the window. In this mode the aspecy ratio
   is not respected and there is no black bars.
The mode is controled by the "scaling_mode" value (between 0 and 3) in
the config file.

Also add Crtl-Alt-s hotkey to cycle through scaling modes
2018-07-08 16:54:51 +01:00
Laurent Merckx
7731737623 SDL: Improve joystick usage
- configuration of engines natively supporting joystick or not
- for engines not supporting joystick input (Myst3, TLJ), reuse the ScummVM code to emulate mouse from joystick.
  A modification was also needed to support relative movements (needed in Myst3 to support camera movements)
2018-03-18 13:06:48 +01:00
rsn8887
3978a82650 SURFACESDL: Remove erroneous override declarations 2018-01-17 19:06:12 -06:00