Commit Graph
570 Commits
Author SHA1 Message Date
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
Johannes Schickel 63304ee9ec SDL: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Johannes Schickel a3d012357e SAMSUNGTV: Make GPL headers consistent in themselves. 2014-02-18 02:39:37 +01:00
Johannes Schickel cc2f3e23a4 OPENPANDORA: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel 56528d9201 NULL: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel 4f34f44fbf MAEMO: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel 872b5fdf41 LINUXMOTO: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel 96564e95b4 GPH: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Johannes Schickel 7803ce2fa4 DINGUX: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Johannes Schickel 121687d2ed BACKENDS: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
Johannes Schickel 5883f4cc3f OPENGL/SDL: Default to RGBA8888 (memory layout).
This makes sure the default mode also works for OpenGL ES contexts.
2014-02-12 18:06:29 +01:00
Johannes Schickel 5d78542ab8 OPENGL: Always support RGBA8888 (memory layout). 2014-02-12 18:06:29 +01:00
Johannes Schickel 2cab30ee80 OPENGL: Move RGBA8888 (logical layout) to OpenGL specific formats.
The reason here is that GL_UNSIGNED_INT_8_8_8_8 is not supported by the GLES
standard. Thus we cannot use it outside OpenGL specific code paths.
2014-02-12 18:06:29 +01:00
Johannes Schickel ac5907a804 OPENGL: Use frac_t for cursor scaling. 2014-02-12 17:15:07 +01:00
Johannes Schickel 6576dd758b OPENGL: Simplify shake offset application. 2014-02-12 17:15:07 +01:00
Johannes Schickel 1709486859 OPENGL: Use GLfloat for draw cooridnates in Texture. 2014-02-12 17:15:07 +01:00
Johannes Schickel 49dcd36e72 OPENGL: Use signed types for mouse coordinates.
This adjusts for the fact that our event handling also uses signed coordinates.
2014-02-12 17:15:07 +01:00
Johannes Schickel ddc70ed9ee OPENGL: Properly use signed types for cursor hotspot. 2014-02-12 17:15:07 +01:00
Johannes Schickel abcadb5d87 OPENGL: Fix cursor regression when defaultFormat doesn't have an alpha channel. 2014-02-11 12:19:30 +01:00
Johannes Schickel 16898486fa OPENGL: Properly setup full game palette on video mode change if required. 2014-02-11 11:10:49 +01:00
Johannes Schickel 1f4638fe82 OPENGL: Refactor texture instantiation. 2014-02-11 11:10:49 +01:00