Commit graph

30 commits

Author SHA1 Message Date
Ian Douglas Scott
14b7eadc45
Fix error during glew loading under Wayland
Solution taken from Supertux: https://github.com/SuperTux/supertux/pull/808
2020-04-11 18:58:54 -07:00
Hubert Maier
6e02a103ab GRAPHICS: Do not use SDL_WINDOW_RESIZEABLE (#1574)
SDL: Disallow resizing the window when support is not available

The window can be resized when the game supports arbitrary resolutions
or the platform allows rendering to a framebuffer.
2019-09-09 19:58:51 +02: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
Bastien Bouclet
113b9132b7 GUI: Add a drop down menu to select the anti aliasing level 2019-05-30 11:44:50 +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
Bastien Bouclet
b0ffcb6899 SDL: Always clear the buffer after creating an OpenGL context
That way it's not possible for garbage to be visible on the first frame,
even when an error dialog is shown before the engine has a chance to render.
2019-05-18 15:25:51 +02:00
DouglasLiuGamer
d4d6e6203b SDL: Implement screenshot saving 2019-02-23 09:52:09 +01:00
Bastien Bouclet
a79c3b7961 SDL: Don't set a profile when requesting an OpenGL context
It does not make too much sense to request a compatibility profile with
OpenGL 2.1 since that notion was added in GL 3.2.

Fixes context creation on Windows with old nvidia drivers (v310.90).
2019-01-28 12:50:07 +01:00
Bastien Bouclet
31a29e666e SDL: Use the desktop resolution when drawing games to a framebuffer
Fixes #1513.
2018-12-20 06:20:51 +01:00
Bastien Bouclet
ef0155a50c OPENGL: Allow the window to be resized
Fixes #1500.
2018-10-13 18:33:01 +02:00
Bastien Bouclet
af5ae38ea5
Merge pull request #1482 from raziel-/patch-3
SDL: Enhance warning/error output
2018-08-15 13:56:36 +02:00
Hubert Maier
f237d4f52a
SDL: Enhance warning/error output 2018-07-25 09:15:55 +02:00
Hubert Maier
e486485333
AMIGAOS4: SDL/OGL - Add backwards compatibility for AmigaOS4 (followup)
Since the internal switch to OpenGL 2.0, residualvm stopped working entirely on the AmigaOS4 platform.

this is a followup to PR #1455
Obviously the Proile Mask must be set to "0" otherwise it will bail out again with a "Error: Invalid Window"
2018-07-25 08:34:04 +02:00
Hubert Maier
98551e0ce3 SDL/OGL: Add backwards compatibility for AmigaOS4
Since the internal switch to OpenGL 2.0, residualvm stopped working entirely on the AmigaOS4 platform.
Due to the fact that AmigaOS4 only supports OpenGL close to version 1.3, the program quits right after starting with an error message of not being able to create a proper screen.

This PR is to make residualvm work again on the AmigaOS4 platform (Grim Fandango is working great, EMI with a few glitches, TLJ not at all due to missing shaders).

Please revise and tell me what has to be changed to get accepted.
2018-06-24 15:49:24 +02: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
Laurent Merckx
8b015b65bd SDL: Support fullscreen on RPI (#1398)
Uses 24 a depth buffer if possible on OpenGL ES
2018-02-20 06:31:46 +01:00
Bastien Bouclet
3ec01653c3 ALL: Merge from ScummVM rev 3a933138ce 2017-12-06 21:41:03 +01:00
Bastien Bouclet
7a11ff2006 SDL: Keep the same window between the launcher and the engines 2017-09-01 09:28:09 +02:00
Bastien Bouclet
6d8568d056 SDL: Implement kFeatureFullscreenToggleKeepsContext in OpenGL with SDL2 2017-09-01 09:25:02 +02:00
Bastien Bouclet
9dd157afe8 SDL: Import the SDL window changes from ScummVM 2017-08-28 21:46:42 +02:00
Bastien Bouclet
d645bbcefd OPENGL: Clean up the overlay pixel format code 2017-08-28 21:46:02 +02:00
Bastien Bouclet
3f143ab299 BACKENDS: Add a configuration setting to enable V-Sync 2016-11-20 13:12:14 +01:00
Bastien Bouclet
f8cce66926 SDL: Improve code organisation and documentation
No functional change
2016-07-14 12:04:06 +02:00
Bastien Bouclet
5b927c06f1 SDL: Ony perform framebuffer detection once on startup 2016-07-14 12:04:06 +02:00
Bastien Bouclet
2141277df9 SDL: Detect the desktop resolution earlier
So that nothing has a chance to change it beforehand.
2016-07-14 12:04:05 +02:00
Bastien Bouclet
8927dcdcf6 SDL: Rewrite OpenGL overlay handling to use TiledSurface 2016-07-14 12:03:38 +02:00
Bastien Bouclet
287f97228f BACKENDS: Make suggestSideTextures go through GraphicsManager 2016-07-14 12:02:55 +02:00
Bastien Bouclet
f9a7f37579 SDL: Remove the OpenGL suffix from some method names 2016-07-14 12:02:55 +02:00
Bastien Bouclet
52f2dfc869 SDL: Split the GraphicsManager into Surface and OpenGL 2016-07-14 12:02:51 +02:00