1188 Commits

Author SHA1 Message Date
Cameron Cawley
2e440e5d96 RISCOS: Replace the StrongHelp manual with the PDF manual 2021-08-29 16:09:32 +01:00
Thierry Crozat
36908e0fcd OSX: Prefer the manual bundled with the application
The User Manual Help menu item now opens the pdf bundled with the
application if present, and only opens the website otherwise.
The bundled documentation is preferred as:
 - This will work even with no internet access
 - This is future proof and will still work in 10 years when the
   website URL might have changed or the website may be down.
 - This ensure we get the doc that corresponds to the version of
   ScummVM being used.
2021-08-28 20:14:57 +01:00
Le Philousophe
d1e195c298 BUILD: Add $(DIST_FILES_DOCS) to targets using it
This makes sure all docs are present before copying them
2021-08-28 11:27:06 +02:00
mataniko
8a91f500a7 MACOS: Open the new documentation hub from the app menu 2021-08-27 15:54:10 +02:00
Cameron Cawley
62f8419fdc MACOSX: Fix compilation with older SDKs 2021-08-25 13:10:20 +01:00
Cameron Cawley
c9411bcace AMIGAOS/MORPHOS: Avoid copying the entire doc directory when packaging 2021-08-25 11:55:11 +02:00
Thierry Crozat
9449e177f4 SDL: Fix warping mouse on macOS HiDPI screens
This fixes bug #12822.
2021-08-20 00:16:03 +01:00
Thierry Crozat
feac996b50 SDL: Move code to handle cursor coordinate HiDPI scale to SdlWindow
SDL handles HiDPI scaling differently depending on the system. On
macOS for example the SDL window size and SDL drawable area have a
different size (factor 2 usually) while on Windows they are the
same. When HiDPI is disabled (for the SDL Surface mode for example)
they are always the same.

We need to appl this scaling when converting cursor position between
the drawable area and the SDL window.
2021-08-20 00:12:51 +01:00
SupSuper
dafb8fe3d5 SDL: Return exact scales from getDpiScalingFactor 2021-08-19 21:55:14 +01:00
Thierry Crozat
0aa68d419e JANITORIAL: Add override keyword for OSystem_MacOSX 2021-08-15 17:52:45 +01:00
Thierry Crozat
f2bc7c8874 MACOSX: Use OpenGL graphics mode by default 2021-08-15 17:52:45 +01:00
Thierry Crozat
7c9761b2da SDL: Fix switching to the <default> graphics mode
The OSystem_SDL::getDefaultGraphicsMode  was returning the
default for the current graphics manager and not the default
for the OSystem_SDL instance. So for example if the default
is SDL Surface when starting ScummVM with the gfx_mode not
set in the config file, and then the user selects the OpenGL
graphics mode, getDefaultGraphicsMode() would now return the
OpenGL mode (the default the OpenGLGraphicsManager). As a
result changing the graphics mode back to <default> and
applying the change would not switch back to Surface SDL
until you restart ScummVM or start a game.

This commit also change how the SDL backends can specify which
graphics mode to use by default. They no longer have to assume
they know the names of the graphics modes in the graphics manager.
2021-08-15 17:43:43 +01:00
Cameron Cawley
c4699cb280 SDL: Move getDisplayDpiFromSdl and getDpiScalingFactor into the SdlWindow class 2021-08-14 19:09:33 +01:00
Max Horn
84de72ac76 MACOSX: fix deprecation warnings 2021-08-07 10:46:14 +02:00
djsrv
9a22c59b67 WIN32: Fix compilation 2021-08-07 10:44:37 +02:00
djsrv
7eb4841065 ALL: Use Path type in Archive functions 2021-08-07 10:44:37 +02:00
Thierry Crozat
1af6ae593a COMMON: Change OSystem::getSystemLanguage to always return a language code 2021-08-04 19:28:47 +01:00
Max Horn
34523aba7e JANITORIAL: Fix some typos 2021-08-04 15:43:15 +02:00
Orgad Shaneh
85c4f53f7f BUILD: Support peldd on mingw cross-compiler 2021-07-30 05:47:22 +03:00
Cameron Cawley
74e7d777a9 BACKENDS: Add OSystem::messageBox() and use it for error handling 2021-07-27 20:50:51 +02:00
Martin Gerhardy
a0c237f7b9 EVENTRECORDER: added new event for OSystem::getTimeAndDate 2021-07-09 19:23:21 +02:00
Christian Krause
b0832788ec SDL: build fix for various non-x86 architectures
- allow certain symbols from unistd.h within SDL backend
- e.g. on armv7, ppc64, aarch and s390, SDL.h would include indirectly
  unistd.h after common/forbidden.h and so the preprocessor would
  generate broken code even if the symbols are never called by
  scummvm
2021-07-04 22:13:09 +02:00
sluicebox
1071f48be3 WIN32: Make main() arguments UNICODE compatible 2021-06-29 12:38:01 -05:00
sluicebox
d9df1919d5 WIN32: Make Win32AudioCDManager UNICODE compatible 2021-06-29 12:38:01 -05:00
sluicebox
eda2cc6b71 WIN32: Make Win32ResourceArchive UNICODE compatible 2021-06-29 12:38:01 -05:00
sluicebox
ee5162078e WIN32: Make OSystem_Win32 UNICODE compatible 2021-06-29 12:38:01 -05:00
sluicebox
863747bc96 WIN32: Use MAX_PATH (260) instead of MAXPATHLEN (256) 2021-06-29 12:38:01 -05:00
Cameron Cawley
c2ae54306f BASE: Update scaler settings from old config files 2021-06-23 21:29:53 +02:00
Lothar Serra Mari
af7e042ac4 BACKENDS: SDL: Allow setting OpenGL mode via registerDefault 2021-06-21 21:23:34 +02:00
Lothar Serra Mari
e555923e0e DISTS: WIN32: Use OpenGL as default renderer 2021-06-21 17:53:30 +02:00
Orgad Shaneh
d31b843f9f
MAKEFILE: Add win32dist-mingw target (#2999)
Installs, and bundles all required dlls in WIN32PATH or DESTDIR.
2021-06-20 12:01:09 +03:00
Hubert Maier
21e709af1d
AMIGAOS: Support the new reduced README.md for AmigaGuide conversion (#3025)
AMIGAOS: Support the new reduced README.md for AmigaGuide conversion

Co-authored-by: Le Philousophe <lephilousophe@users.noreply.github.com>
2021-05-25 23:10:21 +02:00
Thierry Crozat
bf406f66c0 BACKENDS: SDL: Do not allocate memory in SurfaceSdlGraphicsManager::getSupportedGraphicsModes 2021-05-08 21:58:30 +01:00
Mathias Parnaudeau
800c673b62 BACKENDS: SDL: Fix memory leak in supported graphics modes
Supported graphics modes are grouped in an merged array in which
the first part contains modes from the non-OpenGL SDL manager,
obtained by a copy dynamically allocated.

When the array was rebuilt or aimed to be destroyed, it was only
cleared (removing elements) but not freeing duplicated fields
name and description.

An additional leak came from the temporary array (srcModes)
not freed.
2021-05-08 21:58:30 +01:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Le Philousophe
993779259f AMIGAOS: Strip trailing / to ensure .info file is placed beside folder 2021-05-01 18:03:13 +02:00
Hubert Maier
37ef6b4204 AMIGAOS: Typo in comment 2021-05-01 18:03:13 +02:00
Hubert Maier
e776921a7e AMIGAOS: Revert some chnages to use new install path 2021-05-01 18:03:13 +02:00
SupSuper
60f1fd98aa SDL: Use the window display index when querying display modes 2021-05-01 11:22:22 +03:00
SupSuper
5219b1ea57 SDL: Get the window decoration size from the backend
It's been 5 years since SDL 2.0.5, I think it's safe to use
2021-04-29 04:44:55 +01:00
Cameron Cawley
d67b16a55d COMMON: Improve debugging of forbidden symbol issues 2021-04-27 04:05:11 +01:00
Orgad Shaneh
59752c2835 MAKEFILE: Auto-generate dependencies for scummvm.rc 2021-04-23 02:01:09 +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
rsn8887
d3423ae991 VITA: Remove shaders, not supported with latest SDL2 2021-04-13 20:57:28 -05:00
Cameron Cawley
56e2107dc3 RASPBERRYPI: Remove outdated packaging rules 2021-04-13 19:56:55 +01:00
rsn8887
044ea0b60e VITA: Use regular SDL2 graphics code, fixes crash with latest SDK 2021-04-11 19:56:34 -05: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
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
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