Johannes Schickel
366e164705
SDL: Implement initial support for resizable window with SDL2.
...
The code is disabled for now.
2015-12-18 19:12:11 +01:00
Johannes Schickel
64f9c902dd
OPENGL: Smooth mouse experience when black bars are visible.
...
This gets rid of the feeling of the mouse sticking to black borders by using
the full output resolution as area for tracking game mouse movement. The same
behavior is present in plain SDL output with SDL2.
2015-12-14 20:26:05 +01:00
Johannes Schickel
898773e12f
OPENGLSDL: Set proper mouse emulation dimensions.
...
Formerly we did not initialize the mouse emulation from SdlEventSource
properly. Now hopefully joysticks etc. should work fine with the SDL OpenGL
output too.
2015-12-13 23:53:27 +01:00
Johannes Schickel
5d48e211aa
SDL: Fix mouse emulation with SDL2.
...
The mouse emulation via keyboard (or other means) was broken with
079037b739
.
2015-12-13 21:30:25 +01:00
Johannes Schickel
942d0fdad4
OPENGL: Limit scissor override to invisible overlay.
...
This fixes some corner cases which caused black bars to appear for a few screen
updates when the overlay is visible.
2015-12-13 21:30:25 +01:00
Johannes Schickel
cbc517f14f
SDL: Fix warpMouse for SDL2.
...
Thanks to bgK for noticing.
2015-12-13 15:44:42 +01:00
Johannes Schickel
693834e8c6
OPENGL: Implement black borders using scissor test.
2015-12-12 22:40:20 +01:00
Johannes Schickel
f65a8b2689
OPENGL: Only redraw screen when actual changes happened.
2015-12-12 22:31:35 +01:00
Johannes Schickel
fe2ee9ecf5
OPENGL: Refactor screen refresh handling.
...
Subclasses of OpenGLGraphicsManager are now supposed to supply a refreshScreen
function which handles actual screen updating (for example, buffer swapping).
2015-12-12 22:31:35 +01:00
Johannes Schickel
3232050dfc
OPENGL: Fix include guard name.
2015-12-12 22:31:35 +01:00
Johannes Schickel
33be7ef5dd
Merge branch 'rpi-sdl2'
...
This is a manual merge of pull request #632 . The history fo the PR has been
cleaned up.
2015-12-08 21:43:34 +01:00
vanfanel
66dbb7f485
SDL/DISPMANX: Remove dispmanx graphics output.
2015-12-08 21:41:40 +01:00
vanfanel
1eecc41ef6
OPENGLSDL: Request GLES1.1 context with SDL2 for GLES targets.
2015-12-08 21:41:40 +01:00
Johannes Schickel
457640a162
SDL: Prevent cursor from leaving screen area in fullscreen with SDL2.
2015-12-08 15:43:36 +01:00
Johannes Schickel
079037b739
SDL: Prevent graphics stretching in fullscreen when using SDL2.
...
As a side effect we get better coordinates from mouse move events in
fullscreen, i.e. we do not get actual window coordinates but something close
to actual viewport coordinates. The easily noticable issue is that mouse
coordinates inside black bars are outside of the viewport. For example, the
x coordinate can get negative when there's a black bar at the left side.
2015-12-08 15:41:10 +01:00
vanfanel
9d831d0c42
SDL/DISPMANX Fixed small issues with merging: Use append_var, fix spacing issues and changed SurfaceSdlGraphicsManager constructor call parameters on DispmanXSdlGraphicsManager constructor.
2015-11-12 14:03:14 +01:00
vanfanel
99739a13fe
Merge branch 'master' into dispmanx
2015-11-11 17:56:12 +01:00
vanfanel
c362119572
SDL/DISPMANX Renamed the RASBERRYPI define to the less confusing name of DISPMANX because it controls whether dispmanx rendering backend is enabled or not on the Raspberry Pi.
2015-10-18 20:25:53 +02:00
vanfanel
fcbecdeaf6
SDL/DISPMANX: Corrected hasFeature() return values and made setFullScreenMode() ignore the enable value.
2015-07-24 12:04:51 +02:00
vanfanel
8382e87baa
SDL/DISPMANX: Made minor corrections sugested by fingolfin.
2015-07-24 11:48:21 +02:00
vanfanel
8cf5f96b9e
SDL/DISPMANX: Make hasFeature(kFeatureFullscreenMode) return false since dispmanx graphics always run in accelerated fullscreen mode.
2015-07-22 13:33:19 +02:00
vanfanel
b706ca36f1
SDL/DISPMANX: Updated class member names, configure script and asociated files and docs to conform to fingolfin's corrections.
2015-07-22 13:00:45 +02:00
vanfanel
6320a008ec
SDL/DISPMANX: Updated rendering code for better buffers management.
2015-07-20 17:15:04 +02:00
vanfanel
bf68de9aa7
RASPBERRYPI: Changed the RGB code for the game screen surface and added RaspberryPi information file.
2015-07-20 17:13:19 +02:00
vanfanel
2592c72cb5
RASPBERRYPI: Rewrote buffering code of the dispmanx graphics driver for stability.
2015-07-20 17:13:19 +02:00
vanfanel
eeb9ec9af9
RASPBERRYPI: Corrected redundant for loop on the dispmanx graphics driver code.
2015-07-20 17:13:19 +02:00
vanfanel
0855b41c07
RASPBERRYPI: Fixed variable names, removed gcc optimization flags, temporary decrease buffers to 2.
2015-07-20 17:11:47 +02:00
Johannes Schickel
ed698701d7
SDL: Fix compilation with SDL2.
2015-05-20 00:27:23 +02:00
Johannes Schickel
c300944335
SDL: Add TODO about fullscreen modes to OpenGL SDL code.
2015-05-16 16:57:44 +02:00
Littleboy
40e019efd4
SDL: Restore the original video mode when unloading the Surface graphics manager
...
We set a custom video mode that might have a different BPP from the default. To ensure that other graphics managers will get the proper results when listing available video modes, we need to restore the initial BPP when unloading.
This fixes an issue when switching to OpenGL on Windows 8 and later. On those OSes, fullscreen OpenGL only has a 32bpp mode. It is correctly listed in the options but we call SLD_SetVideoMode later in the surface graphics manager. When we list the mode again after a switch, the internally selected BPP is still 16 and we fail to find any available fullscreen modes.
2015-05-16 01:29:15 -04:00
Littleboy
ed3a32a91a
SDL: Check for NULL when listing available modes via SDL_ListModes
...
It can be returned when there are no dimensions available for the currently selected pixel format
2015-05-15 23:30:02 -04:00
Tarek Soliman
0aa512da12
MAEMO: Fix compilation.
...
Related to 71cc9e41e8
2015-04-20 12:12:34 -05:00
vanfanel
f876fdc7f0
RASPBERRYPI: fixed some comments and spacing on the dispmanx graphics driver
2015-03-29 21:53:21 +02:00
vanfanel
b4f5dc181e
RASPBERRYPI: Updated dispmanx code with non-blocking vsync and triple buffer
2015-03-29 21:53:10 +02:00
vanfanel
08a3376ba7
RASPBERRYPI: Added Raspberry Pi native 2D API support (dispmanx)
2015-03-29 21:52:53 +02:00
Johannes Schickel
627d766325
SDL: Add basic abstraction class for the SDL window.
2015-02-16 01:03:29 +01:00
Johannes Schickel
8530997fff
SDL: Add experimental support for SDL2.
...
This is based upon skristiansson's change set to make ScummVM work with SDL2.
2015-01-25 20:23:25 +01:00
Johannes Schickel
d97889cea7
SDL: Cleanup graphics manager switching a bit.
2015-01-25 19:26:15 +01:00
Johannes Schickel
3a2db0135d
SDL: Refactor WM specific functionality into SdlGraphicsManager.
2015-01-25 18:57:38 +01:00
Johannes Schickel
1124d1db31
OPENGL: Fix truncation issue resulting in wrong mouse coordinates.
2015-01-07 20:38:20 +01:00
Johannes Schickel
f879f8af04
OPENGL: Limit mouse cursor drawing to inside game screen when no overlay is visible.
2015-01-07 20:38:17 +01:00
Filippos Karapetis
d2c69a79fe
BACKENDS: Remove trailing whitespace
2014-10-28 15:38:51 +02:00
Einar Johan Trøan Sømåen
1506f6049e
BACKENDS: Fix some Doxygen comments that seem wrong.
2014-08-29 03:28:26 +02:00
Alyssa Milburn
48564efc88
OPENGLSDL: Don't ignore events after user-initiated resizes.
2014-07-04 22:37:43 +02:00
Johannes Schickel
dbbc458671
OPENGLSDL: Move time stamp for last video mode set after fallback mode setup.
2014-06-17 23:31:16 +02:00
Johannes Schickel
fff47ac4bd
OPENGLSDL: Make workaround for fast resolution changes actually work for WME.
...
Thanks to fuzzie for noticing this.
2014-06-17 23:21:33 +02:00
Alyssa Milburn
92e02457f5
OPENGLSDL: Always ignore bad resolution changes.
...
Otherwise we can end up with the wrong resolution when we make
multiple resizes in quick succession.
2014-06-10 22:07:11 +02:00
Torbjörn Andersson
da57eeeeb2
OPENGL: Fix building with --disable-16bit
2014-02-25 00:09:16 +01:00
Johannes Schickel
224cec46a7
WINCE: Make GPL headers consistent in themselves.
2014-02-18 02:39:40 +01:00
Johannes Schickel
1b5c324811
SYMBIAN: Make GPL headers consistent in themselves.
2014-02-18 02:39:38 +01:00