aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
AgeCommit message (Collapse)Author
2016-02-17SDL: Work around bug #7038 by limiting mode reset to Win32.Johannes Schickel
Bug is: "IRIX: X BadMatch when trying to start any 640x480 game". 40e019efd45a02261a7dbc69ceaa9188d8c7a269 introduced resetting the pixel depth when unloading modes for SDL output. This was required to make mode listing for OpenGL work on Win8+. This causes issues on non-Win32 platforms though. SDL might not give us a valid a pixel depth, causing the resetting to fail. A particular example is X11 on IRIX, when only 16bit output modes work. Initially SDL tells us that the pixel depth is 32bit. Trying to set this up causes a crash though. Since there is no way to validate SDL's return value, we simply limit the reset to platforms where it is actually required, i.e. Win32.
2015-12-18SDL: Implement initial support for resizable window with SDL2.Johannes Schickel
The code is disabled for now.
2015-12-14OPENGL: Smooth mouse experience when black bars are visible.Johannes Schickel
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-13OPENGLSDL: Set proper mouse emulation dimensions.Johannes Schickel
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-13SDL: Fix mouse emulation with SDL2.Johannes Schickel
The mouse emulation via keyboard (or other means) was broken with 079037b73990b6107e59c7f1cd971c3a1cc221d1.
2015-12-13OPENGL: Limit scissor override to invisible overlay.Johannes Schickel
This fixes some corner cases which caused black bars to appear for a few screen updates when the overlay is visible.
2015-12-13SDL: Fix warpMouse for SDL2.Johannes Schickel
Thanks to bgK for noticing.
2015-12-12OPENGL: Implement black borders using scissor test.Johannes Schickel
2015-12-12OPENGL: Only redraw screen when actual changes happened.Johannes Schickel
2015-12-12OPENGL: Refactor screen refresh handling.Johannes Schickel
Subclasses of OpenGLGraphicsManager are now supposed to supply a refreshScreen function which handles actual screen updating (for example, buffer swapping).
2015-12-12OPENGL: Fix include guard name.Johannes Schickel
2015-12-08Merge branch 'rpi-sdl2'Johannes Schickel
This is a manual merge of pull request #632. The history fo the PR has been cleaned up.
2015-12-08SDL/DISPMANX: Remove dispmanx graphics output.vanfanel
2015-12-08OPENGLSDL: Request GLES1.1 context with SDL2 for GLES targets.vanfanel
2015-12-08SDL: Prevent cursor from leaving screen area in fullscreen with SDL2.Johannes Schickel
2015-12-08SDL: Prevent graphics stretching in fullscreen when using SDL2.Johannes Schickel
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-11-12SDL/DISPMANX Fixed small issues with merging: Use append_var, fix spacing ↵vanfanel
issues and changed SurfaceSdlGraphicsManager constructor call parameters on DispmanXSdlGraphicsManager constructor.
2015-11-11Merge branch 'master' into dispmanxvanfanel
2015-10-18SDL/DISPMANX Renamed the RASBERRYPI define to the less confusing name of ↵vanfanel
DISPMANX because it controls whether dispmanx rendering backend is enabled or not on the Raspberry Pi.
2015-07-24SDL/DISPMANX: Corrected hasFeature() return values and made ↵vanfanel
setFullScreenMode() ignore the enable value.
2015-07-24SDL/DISPMANX: Made minor corrections sugested by fingolfin.vanfanel
2015-07-22SDL/DISPMANX: Make hasFeature(kFeatureFullscreenMode) return false since ↵vanfanel
dispmanx graphics always run in accelerated fullscreen mode.
2015-07-22SDL/DISPMANX: Updated class member names, configure script and asociated ↵vanfanel
files and docs to conform to fingolfin's corrections.
2015-07-20SDL/DISPMANX: Updated rendering code for better buffers management.vanfanel
2015-07-20RASPBERRYPI: Changed the RGB code for the game screen surface and added ↵vanfanel
RaspberryPi information file.
2015-07-20RASPBERRYPI: Rewrote buffering code of the dispmanx graphics driver for ↵vanfanel
stability.
2015-07-20RASPBERRYPI: Corrected redundant for loop on the dispmanx graphics driver code.vanfanel
2015-07-20RASPBERRYPI: Fixed variable names, removed gcc optimization flags, temporary ↵vanfanel
decrease buffers to 2.
2015-05-20SDL: Fix compilation with SDL2.Johannes Schickel
2015-05-16SDL: Add TODO about fullscreen modes to OpenGL SDL code.Johannes Schickel
2015-05-16SDL: Restore the original video mode when unloading the Surface graphics managerLittleboy
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-15SDL: Check for NULL when listing available modes via SDL_ListModesLittleboy
It can be returned when there are no dimensions available for the currently selected pixel format
2015-04-20MAEMO: Fix compilation.Tarek Soliman
Related to 71cc9e41e8e61e560ed5cb8e1fe1d0c539f001be
2015-03-29RASPBERRYPI: fixed some comments and spacing on the dispmanx graphics drivervanfanel
2015-03-29RASPBERRYPI: Updated dispmanx code with non-blocking vsync and triple buffervanfanel
2015-03-29RASPBERRYPI: Added Raspberry Pi native 2D API support (dispmanx)vanfanel
2015-02-16SDL: Add basic abstraction class for the SDL window.Johannes Schickel
2015-01-25SDL: Add experimental support for SDL2.Johannes Schickel
This is based upon skristiansson's change set to make ScummVM work with SDL2.
2015-01-25SDL: Cleanup graphics manager switching a bit.Johannes Schickel
2015-01-25SDL: Refactor WM specific functionality into SdlGraphicsManager.Johannes Schickel
2015-01-07OPENGL: Fix truncation issue resulting in wrong mouse coordinates.Johannes Schickel
2015-01-07OPENGL: Limit mouse cursor drawing to inside game screen when no overlay is ↵Johannes Schickel
visible.
2014-10-28BACKENDS: Remove trailing whitespaceFilippos Karapetis
2014-08-29BACKENDS: Fix some Doxygen comments that seem wrong.Einar Johan Trøan Sømåen
2014-07-04OPENGLSDL: Don't ignore events after user-initiated resizes.Alyssa Milburn
2014-06-17OPENGLSDL: Move time stamp for last video mode set after fallback mode setup.Johannes Schickel
2014-06-17OPENGLSDL: Make workaround for fast resolution changes actually work for WME.Johannes Schickel
Thanks to fuzzie for noticing this.
2014-06-10OPENGLSDL: Always ignore bad resolution changes.Alyssa Milburn
Otherwise we can end up with the wrong resolution when we make multiple resizes in quick succession.
2014-02-25OPENGL: Fix building with --disable-16bitTorbjörn Andersson
2014-02-18WINCE: Make GPL headers consistent in themselves.Johannes Schickel