aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
AgeCommit message (Collapse)Author
2013-01-26Merge pull request #301 from lordhoto/c++11-playgroundJohannes Schickel
RFC: Allow use of override and nullptr. Also allow C++11 compilation.
2013-01-24OPENGL: Fix linear filtering when the texture size doesn't match the real sizeMatthew Hoops
2013-01-09SDL: Silence C++ narrowing warnings.Johannes Schickel
2013-01-09OPENGL: Silence C++11 narrowing warning.Johannes Schickel
2012-12-10Revert "OPENGLSDL: Remove HACK in fullscreen toggle mode."Johannes Schickel
This reverts commit b6f7d697090ca6f90d20f0f2d5661cc4c8b71bf2. This actually breaks fullscreen mode cycling.
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-08-09DINGUX: Fix "if" formatting.Johannes Schickel
2012-08-09OPENGL: Fix RGBA8888 mode setup.Johannes Schickel
2012-08-08OPENGL: GL_BGRA does not exist in every GLES implementation.David-John Willis
* It definately does not exist in the GLES implementations I can test with. * Don't configure if USE_GLES is set.
2012-07-31GPH: Add extra call to SDL_ShowCursor(SDL_DISABLE).David-John Willis
* This is needed on the hacked SDL on the GP2X after any call to SDL_SetVideoMode. It does not impact other GPH devices.
2012-07-24GPH: Fix accidental commit.David-John Willis
* I did not mean to commit any of the GPH backend with the OP stuff. Cleanup of this backend will follow later.
2012-07-24OPENPANDORA: Free hiddenCursor on unloadGFXMode and cleanup screen setup.David-John Willis
* Also remove some old cruft in the form of commented code.
2012-07-24OPENPANDORA: Move SDL_CreateCursor hacklet from init to loadGFXMode.David-John Willis
* Fixes a bug that can occur on load.
2012-06-16ALL: Let overlay related methods in OSystem take a void * and use a proper ↵Johannes Schickel
pitch values. This is a first step to get rid of OverlayColor, which is a requirement for proper 4Bpp overlay support.
2012-06-16BACKENDS: Make OSystem::setMouseCursor take a "const void *" buffer.Johannes Schickel
This is mainly for consistency with OSystem::copyRectToScreen.
2012-06-16BACKENDS: Let copyRectToScreen take a "const void *" instead of "const byte ↵Johannes Schickel
*" as buffer. This removes the need to convert the parameter to copyRectToScreen to "const byte *", which is commonly used in games, which use Graphics::Surface to store their graphics data.
2012-06-03ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" ↵Johannes Schickel
logic. All uses of the old target scale API actually wanted to disallow scaling of the mouse cursor. This commit adapts our API to this and thus simplifies backend implementations. Some backends, most notable the Wii and Android, did some implementation of the cursor target scale, which I didn't adapt yet. I added a TODO for the porters there.
2012-05-31ALL: Correct spelling of "Mac OS X" in various placesMax Horn
2012-03-28OPENGL: Don't leak surfaces.Alyssa Milburn
2012-03-17ALL: Make use of defined() for the preprocessor consistent.Johannes Schickel
This does not change the use of defined for some NDS source files, since they seem to be (based on?) third party code.
2012-02-20OPENGL: Don't force alpha to 1Willem Jan Palenstijn
This was likely a hack to work around an alpha blending bug in the gui vector renderer.
2012-02-19NULL: Fix compiler errors when using the NullGraphicsManagerThierry Crozat
The errors fixed are inaccessible base class when trying to set the _graphicsManager and a pure virtual function when trying to create the NullGraphicsManager instance.
2012-02-15OPENGL: More formatting fixes.Johannes Schickel
2012-02-15OPENGLSDL: Remove HACK in fullscreen toggle mode.Johannes Schickel
Altering the fullscreen state will automatically force a refresh now.
2012-02-15OPENGL: Prevent access to a few more members in the SDL OpenGL code.Johannes Schickel
2012-02-15OPENGL: Use tabs instead of spaces for indentation.Johannes Schickel
2012-02-15OPENGLSDL: Don't cast EventType into int for switch.Johannes Schickel
2012-02-15OPENGL: Use C-style casts.Johannes Schickel
2012-02-15OPENGL: Let getGlErrStr return a Common::String.Johannes Schickel
This also makes getGlErrStr use Common::String::format instead of snprintf.
2012-02-15OPENGL: Slight formatting fixes.Johannes Schickel
2012-02-15OPENGL: Make all GLTexture members private.Johannes Schickel
2012-02-15OPENGL: Unvirtualize all GLTexture methods.Johannes Schickel
2012-02-15OPENGL: Remove redundant check in adjustMousePosition.Johannes Schickel
2012-01-03OPENGL: Fix mouse cursor scaling.Johannes Schickel
2011-12-15OPENGLSDL: Simplify the code a bit.Johannes Schickel
2011-12-15OPENGLSDL: Fix video mode initialization for 640x400 games with AR enabled.Johannes Schickel
Formerly they always used a height of 240 * scaleFactor, which would for exmaple make the games requesting a 1x scaler use a height of 240 if AR is enabled. This was a regression from b8dcd9a25eb27ef40aa5535fc83879d20db7e10c.
2011-11-29MAEMO: Fix zoom key capture on N900 (fixes bug#3443037)Tarek Soliman
This was semi-intentionally skipped in the intial port revival because the focus was on N810 at the time. This is mostly copied from the old 1.2.1 port and then cleaned up.
2011-11-29MAEMO: Add basic graphics managerTarek Soliman
2011-11-09OPENGL: Always set the unpack alignment when refreshing the textures.Johannes Schickel
This should hopefully make sure we are always having the correct alignment set up. This might fix bug #3435655 "OpenGL display corruption with various Sierra games Daily B.".
2011-10-10OPENPANDORA: Cleanup the format of code a little to match our Code ↵David-John Willis
Formatting Conventions. * No functional changes. * Automated astyle pass.
2011-10-03GPH: Cleanup the format of code to match our Code Formatting Conventions.David-John Willis
* No functional changes.
2011-10-03GPH: Cleanup loadGFXMode().David-John Willis
2011-10-03SURFACESDL: Stop forceful resetting of _videoMode.hardware* when calling ↵David-John Willis
SurfaceSdlGraphicsManager::loadGFXMode() for the GPH backend. * Note: This really should be cleaned up and all backends that have a custom loadGFXMode() really should setup their own _videoMode.hardware* settings. Assuming the overlay will always match the hardware is flawed logic on devices with fixed hardware screens. * Just done for the GPH backend for now to cut down on the regresion risk to other backends near the 1.4.0 release cycle.
2011-09-23OPENGLSDL: Make fullscreen mode switching work again.Johannes Schickel
2011-08-21BADA: Remove incorrect BADA defined checkChris Warren-Smith
2011-08-21BADA: Fix formatting and non bada host compile errorChris Warren-Smith
2011-08-21BADA: Initial BADA port implementationChris Warren-Smith
2011-08-18SDL: Fix typo.Johannes Schickel
2011-08-12OPENGL: Fix aspect ratio correction behavior.Johannes Schickel
Now only 320x200 and 640x400 will result in aspect ratio correction to be used if the user requested it. This should fix some strechting in Myst/Riven.
2011-08-12OPENGLSDL: Do not change requested window size on resize.Johannes Schickel
This should help fix a lock up on window managers, which will try to force the ScummVM window to a certain size, by just requesting the same size over and over again. Now we get black borders even in windowed mode when the aspect of the window does not match the aspect of the game screen (and we are not in "normal" mode), but that is usually the same in video players too, so shouldn't be too bad.