aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl
AgeCommit message (Collapse)Author
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-03-28OPENGL: Don't leak surfaces.Alyssa Milburn
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-15OPENGL: More formatting fixes.Johannes Schickel
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-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-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-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-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-09OPENGL: Add include guard to gltexture.hJohannes Schickel
2011-08-09OPENGL: Added a temporary hack to fix compilation under Windows, after the ↵Filippos Karapetis
latest changes to the SDL interface layer
2011-08-09SDL: Take advantage of SdlGraphicsManager.Johannes Schickel
This gets rid of the hacks, where SdlEventSource added events with custom type numbers to pass SDL_VIDEOEXPOSE and SDL_VIDEORESIZE to the graphics manager. Furthermore it get rids of the uninituitive and hard to trace way of assigning the proper mouse coordinates to mouse related events. Formerly it passed the real screen coordinates through the even dispatching api to the graphics manager (at least hopefully ;-) and let that handle creating a new event with the proper coordinates. Now instead SdlEventSource handles the proper coordinate setup itself. Since this is a behavior change and I can not test all the SDL based small devices ports this commit might break compilation for them and more serve it might also break mouse position behavior. If any of that occurs I am sorry about it.
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-19OPENGL: Clarify OSD rect color in a comment.Johannes Schickel
2011-06-19OPENGL: Formatting fixes.Johannes Schickel
2011-06-06OSYSTEM: displayMessageOnOSD() now accepts non-ASCII stringsThierry Crozat
It should now accept strings encoded using the current TranslationManaged charset (e.g. translated text).
2011-06-06GRAPHICS: Get rid of kSODFont (ScummFont)Thierry Crozat
OSD is now using the kGUIFont instead. The main advantage is that the kGUIFont can be used for translated text while only ASCII characters were present in ScummFont.
2011-06-04BACKENDS: Replace OSystem::disableCursorPalette by setFeatureState callsMax Horn
2011-06-04COMMON: Rename kFeatureCursorHasPalette -> kFeatureCursorPaletteMax Horn
2011-05-31BUILD: Add SDL_BACKEND=1 to config.mk for all SDL based backendsMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-01Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".Johannes Schickel
For further discussion check here: https://github.com/scummvm/scummvm/pull/16 Conflicts: graphics/png.cpp
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-17OPENGL: Do not access Surface::bytesPerPixel anymore.Johannes Schickel
2011-04-17BACKEND: Prefer Surface::create taking a PixelFormat over the one taking a ↵Johannes Schickel
byte depth.
2011-03-21OPENGL: Fix mouse cursor position in Normal mode when AR is enabled.Johannes Schickel
2011-03-20OPENGL: Get rid of unused switchDisplayMode.Johannes Schickel
2011-03-20OPENGL: Handle aspect ratio correction as flag instead of having a special ↵Johannes Schickel
mode for it. This partly fixes the OpenGL mode mess, but now OpenGL Normal and OpenGL Conserve will feature the same semantics when aspect ratio correction is enabled... That is still something to solve.
2011-03-17OPENGL: Fix screenshots when the display width is not divisible by 4.Johannes Schickel
2011-03-17OPENGL: Setup the correct header size for BMP screenshots.Johannes Schickel
This fixes an color bug in the resulting screenshots.
2011-03-17OPENGL: Cleanup switchDisplayMode.Johannes Schickel
2011-03-17OPENGLSDL: More refactoring to avoid direct access of ↵Johannes Schickel
OpenGlGraphicsManager's members.
2011-03-17OPENGL: Move setFullscreenMode to OpenGLGraphicsManager.Johannes Schickel
2011-03-17OPENGLSDL: Handle active fullscreen mode OPENGLSDL internal.Johannes Schickel
2011-03-17OPENGL: Make setScale non-virtual.Johannes Schickel
2011-03-17OPENGL: Get rid of _aspectRatioCorrection.Johannes Schickel
2011-03-17OPENGL: Slight refactoring.Johannes Schickel
First step into making all state variables of the OpenGL backend private, to help making the backend more maintainable, by disallowing subclasses to just mess with everything...
2011-03-17OPENGL: Fix compilation when USE_OSD is not defined.Johannes Schickel
2011-03-17OPENGL: Update the OSD texture when visible while the output mode changes.Johannes Schickel
This fixes annoying graphics glitches, which occured sometimes when resizing the Window.
2011-03-17OPENGL: Fix "Original" mode by setting up the corret screen dimensions.Johannes Schickel
2011-03-17OPENGL: Refactor warpMouse.Johannes Schickel
Now subclasses will not need to worry about the scaling logic themselves, but just need to implement setInternalMousePosition, which should handles setting the system's mouse coordinates.