aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/sdl
AgeCommit message (Collapse)Author
2011-08-18SDL: Fix typo.Johannes Schickel
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-08-09SDL: Add a new base class for graphics managers utilizing SDL.Johannes Schickel
2011-06-19SDL: Rename SdlGraphicsManager to SurfaceSdlGraphicsManager to reflect its ↵Johannes Schickel
purpose. Hopefully I catched all uses of the old name in our ports...
2011-06-19SDL: Formatting fixes.Johannes Schickel
2011-06-06I18N: Make some OSD messages translatableThierry Crozat
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-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-02ALL: Mark printf and various other symbols as forbiddenMax Horn
Right now, a few places in the frontend code still use printf and consorts. We mark the affected files with a FIXME for now, and add a dedicated exception for each. To be fixed! Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always enforce a compiler error
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-17ALL/GRAPHICS: Remove Surface::bytesPerPixel.Johannes Schickel
2011-04-17SDL: Properly setup internal Surface formats.Johannes Schickel
2011-03-29JANITORIAL: Remove/comment unused varsdhewg
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-17Merge branch 'sdl-focus-rect' of https://github.com/lordhoto/scummvmJohannes Schickel
Conflicts: backends/graphics/sdl/sdl-graphics.cpp
2011-03-08WINCE: Make scummvm compile and run again for WinCE platform (patch #3202337)Max Horn
2011-02-24SDL: Use the SDL_Surface's pitch in copyRectToScreen.Johannes Schickel
This fixes messed up graphics, when SDL decides to add padding bytes to the lines of an SDL_Surface. Formerly the code always calculated the pitch via w*bpp, which of course does not work in all cases.
2011-02-24SDL: Output a warning in case the focus rect does not fit inside the screen.Johannes Schickel
Sadly it seems the engines do not care whether their focus rect really fits inside the game screen. To ease finding such instances (which might cause odd clipping by the backend) I added a warning for them.
2011-02-24SDL: Add config file variable to enable the focus rect debug code.Johannes Schickel
The variable is named "use_sdl_debug_focusrect" for now. The debug code is still only enabled, when a ScummVM debug version is built though.
2011-02-24SDL: Add a debug focus rect implementation.Johannes Schickel
This implementation currently draws a rect frame around the focus rect area.
2011-02-24SDL: Move focus rectangle dummy implementations to .cpp file.Johannes Schickel
2011-02-14SDL: Adapt SDL graphics module to the setPalette/grabPalette RGBA->RGB change.Johannes Schickel
2011-02-07COMMON: OSystem now has a PaletteManagerMax Horn
svn-id: r55806
2010-11-29SDL: Slight formatting fix.Johannes Schickel
svn-id: r54583
2010-11-29BACKENDS: Close Memory Leak of Mouse Surfaces in SDL Graphics BackendDavid Turner
svn-id: r54579
2010-11-29BACKENDS: Include scummsys.h at top of all .cpp files, *before* any #ifdefsMax Horn
svn-id: r54573
2010-11-29SDL: Move #include <SDL.h> into a special wrapper fileMax Horn
svn-id: r54572
2010-11-28SDL: re-enable unicode after graphics initWillem Jan Palenstijn
svn-id: r54531
2010-11-28Merging the gsoc2010-opengl branchMax Horn
svn-id: r54518
2010-10-23DINGUX: fix compilation for the opengl branchFabio Battaglia
Moved events related code to backends/events/dinguxsdl/* and move graphics related code to backends/graphics/dinguxsdl/* Subclass OSystem_POSIX instead of OSystem_SDL svn-id: r53730
2010-10-13OPENGL: Get rid of one ugly cast.Johannes Schickel
svn-id: r53435
2010-10-13OPENGL: Replace SdlEventManager by SdlEventSource.Johannes Schickel
Formerly SdlEventManager was a subclass of DefaultEventManager but did not really have anything in common with the idea of our EventManager interface. Now I made a new object SdlEventSource which only subclasses EventSource and which is responsible for obtaining events from SDL (and processing them). svn-id: r53433
2010-10-13OPENGL: Merged from trunk, from rev 52105 to 53396.Johannes Schickel
This includes an rather hacky attempt to merge all the recent gp2x backend changes into the branch. I suppose the gp2x backend and probably all new backends, i.e. gph, dingux etc., might not compile anymore. Since I have no way of testing those it would be nice if porters could look into getting those up to speed in this branch. svn-id: r53399
2010-09-03SDL/OPENGL: Fix backend initialization when building with ENABLE_VKEYBD.Alejandro Marzini
svn-id: r52503
2010-08-12SDL: Make use of SDL_BACKEND instead of platform specific defines.Alejandro Marzini
svn-id: r52029
2010-08-05OPENGL: Improve aspect ratio correction mode selection.Alejandro Marzini
svn-id: r51752
2010-08-01SYMBIAN platform. Correct building of SDL refacturing for Symbian.Lars Persson
svn-id: r51587
2010-07-30Merged from trunk, from Rev 50841 to HEADAlejandro Marzini
svn-id: r51495
2010-07-30SDL/OPENGL: Add ability to switch between SDL and OpenGL graphics managers.Alejandro Marzini
OSystem_SDL will create a merged list of all graphics modes from SDL and OpenGL. When the user changes the graphics mode in options and restarts ScummVM should switch to that graphics mode in the corresponding graphics manager. svn-id: r51493
2010-07-30OSYSTEM: Add resetGraphicsScale() method.Alejandro Marzini
This fixes a hack for resetting the graphics scale to x1 when starting games that have a large screen size. The SDL graphics manager should now scale back to x1 without changing the current scaler in use, as well as the OpenGL graphics manager. svn-id: r51492
2010-07-27OPENGL: Implement aspect ratio support and toggling. Improve fullscreen ↵Alejandro Marzini
switching. Fix cursor scaling bug. Now the hotkey Ctrl-Alt-Enter will switch between all available fullscreen modes. Alt-Enter will only switch to the best mode available, and exit fullscreen mode if already on it. The different aspect ratios can be switched with Ctrl-Alt-A. The normal mode will stretch the contents to the screen, while other modes will stretch only one dimension to the screen size, and maintain the aspect ratio for the other dimension. svn-id: r51346
2010-07-26Formatted spaces.Alejandro Marzini
svn-id: r51300
2010-07-26OPENGL: Add OSD message.Alejandro Marzini
svn-id: r51295
2010-07-19SDL: Hack to handle special SDL events.Alejandro Marzini
svn-id: r51015
2010-07-16Added basic cursor drawing.Alejandro Marzini
svn-id: r50954
2010-07-15Fixed doing OpenGL calls before a graphical context was created.Alejandro Marzini
svn-id: r50905
2010-07-15Silence gcc warnings.Matthew Hoops
svn-id: r50902