aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/graphics.cpp
AgeCommit message (Collapse)Author
2009-07-09corrected creation of one Graphics::PixelFormat to reflect the resurrection ↵Jody Northup
of Graphics::PixelFormat::createFormatCLUT8 svn-id: r42282
2009-07-08Reinstated static inline Graphics::PixelFormat::createFormatCLUT8(), which I ↵Jody Northup
am told was not supposed to be removed with the others. svn-id: r42268
2009-07-07Removed PixelFormat convenience constructors at behest of Max and Eugene.Jody Northup
svn-id: r42207
2009-06-30renamed kTransactionPixelFormatNotSupported to ↵Jody Northup
kTransactionFormatNotSupported, retyped all Graphics::PixelFormat * parameters to const Graphics::PixelFormat *, (hopefully) repaired all memory leaks on screen and cursor format changes, provided OSystem::getScreenFormat and OSystem::getSupportedFormats methods for when ENABLE_RGB_COLOR is not set, completely forgot the "commit early, commit often" mantra. svn-id: r41972
2009-06-27changed initGraphics, and OSystem::initSize to take Graphics::PixelFormat * ↵Jody Northup
parameters instead of Graphics::PixelFormat parameters, to save unnecessary pixelformat initialization if ENABLE_RGB_COLOR is not set. svn-id: r41909
2009-06-26Converted OSystem::SetMouseCursor to take pointer to PixelFormat, instead of ↵Jody Northup
full PixelFormat. Removed OSystem::setCursorFormat (since I forgot to do so several commits ago) svn-id: r41901
2009-06-24made the cursor's pixel format a member of the cursor object, merged ↵Jody Northup
____CursorFormat functions into equivalent ____Cursor functions. svn-id: r41825
2009-06-23Merged format initialization into InitSize to allow for backends not ↵Jody Northup
supporting gfx transactions. svn-id: r41801
2009-06-20renamed ENABLE_16BIT define to more accurate ENABLE_RGB_COLORJody Northup
svn-id: r41696
2009-06-16Simplified cursor related 16-bit code.Jody Northup
svn-id: r41577
2009-06-15Fix compilation when 16BIT code is disabled.Eugene Sandulenko
svn-id: r41543
2009-06-15Added kUnsupportedColorMode error code brought Scumm engine and SDL backend ↵Jody Northup
into compliance with API outlined in http://scummvmupthorn09.wordpress.com/2009/06/14/how-this-is-going-to-work/ Provided convenient Graphics::PixelFormat constructors for ColorMode enums, and bitformat integers. Removed last vestiges (I think) of initial cursor hack. svn-id: r41539
2009-06-13Fixed cursor code to keep track of cursor formats so that ThemeEngine and/or ↵Jody Northup
GuiManager cursors will render properly over the game (on spacebar hit, for instance) svn-id: r41491
2009-06-12Unfinished proof of concept regarding my compromise with LordHoto in IRC.Jody Northup
svn-id: r41464
2009-06-11Renamed Graphics::ColorFormat to Graphics::ColorMode, streamlined enum by ↵Jody Northup
removing order section and temporarily removing kFormatARGB1555 Converted cursor code to make use of _screenFormat, instead of a parameter passed directly to it by the engine. Adjusted scumm engine to account for these changes. This should probably have been two separate commits, but the changes concern the same files... svn-id: r41443
2009-06-10Code formattingEugene Sandulenko
svn-id: r41420
2009-06-10SDL backend now dynamically generates 8 or 16-bit color surface depending on ↵Jody Northup
engine request (using ad-hoc format). svn-id: r41416
2009-06-06Streamlined the cursor blitting changes introduced in revision 41412Jody Northup
svn-id: r41213
2009-06-06Corrected 16-bit cursor blit errors on GFX mode change.Jody Northup
svn-id: r41212
2009-06-06Corrected cursor display errors introduced by revision 41204, reimplemented ↵Jody Northup
16-bit cursor support in a less hacky, but still temporary way. svn-id: r41209
2009-06-05Corrected backend to be able to accept a 16-bit mouseKeyColor without overflowJody Northup
svn-id: r41194
2009-06-05Converted cursor code to use 16-bit.Jody Northup
svn-id: r41191
2009-06-03Applying the temporary 16-bit SDL hack.Jody Northup
svn-id: r41152
2009-05-01Renamed aspectRatio to aspectRatioCorrection in the SDL backend to match the ↵Bertrand Augereau
accessor functions (don't worry, o reader, for this is the only modification going to the SVN :) ) svn-id: r40226
2009-03-19COMMON: Added a new IS_ALIGNED macro (for now using size_t, we can change it ↵Max Horn
if this turns out to be not portable enough. Also added a doxygen comment to the ARRAYSIZE macro svn-id: r39542
2009-02-27Changing the visibility of the mouse means it has to be redrawn. At least, thisTorbjörn Andersson
fixes a regression in Broken Sword 1 when using one inventory object on another (if the cursor is partly beneath the inventory bar) for me. svn-id: r38926
2009-02-26Fix regression introduced with r38890, where the mouse cursor was redrawn ↵Johannes Schickel
every updateScreen call. svn-id: r38899
2009-02-26- Fix cursor drawing bug on (cursor) palette changeJohannes Schickel
- Fix cursor drawing when it was hidden before and no dirty rects are present - Diese und die folgenden Zeilen werden ignoriert -- M sdl/graphics.cpp svn-id: r38890
2009-02-24SDL: Tweak the way the mouse is drawn/erased, so that it is not erase and ↵Max Horn
drawn again if nothing changed svn-id: r38861
2009-01-30Moved default implementations for various OSystem methods into a new class ↵Max Horn
BaseBackend svn-id: r36135
2009-01-22Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. ↵Max Horn
into methods, and added an operator== svn-id: r35993
2009-01-02Fixed the way how screen changes are tracked. This should fix a crash when ↵Johannes Schickel
doing an RTL from COMI when a 3x scaler is enabled. svn-id: r35685
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-12-19Allow changing the scaler using hotkeys again. I hope this is the correct wayTorbjörn Andersson
of fixing it. (I've added a final case to endGFXTransaction for when the screen just needs to be updated, without any changes in mode or size.) svn-id: r35443
2008-11-14Committed my patch #2123680 "SDL: Backend transaction / rollback support".Johannes Schickel
svn-id: r35062
2008-11-06Got rid of OSystem::colorToRGB and RGBToColor; added implementations for ↵Max Horn
OSystem::getOverlayFormat to several ports (pending testing by the porters) svn-id: r34912
2008-11-03Committed my patch #2216641 "GRAPHICS: PixelFormat introduction".Johannes Schickel
svn-id: r34875
2008-09-22Fixed full screen toggling via alt+enter.Johannes Schickel
svn-id: r34627
2008-09-20Fix for bug #2120602: 5ALL: Starting the launcher with -f triggers assertionMax Horn
svn-id: r34617
2008-03-26Modified Patch #1925352: Memory leak fixesMax Horn
svn-id: r31244
2008-01-28Fixed the spaces before tabs.Jordi Vilalta Prat
svn-id: r30667
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664
2007-12-29Fixed warning when DISABLE_SCALERS is defined.Torbjörn Andersson
svn-id: r30074
2007-12-26Do not use SDL_WM_ToggleFullScreen, it's buggy on too many systems. Should ↵Max Horn
fix bug #1705410. svn-id: r30006
2007-08-11SDL backend cleanup (minor)Max Horn
svn-id: r28520
2007-06-19Implemented the OSystem framebuffer API, as discussed on scummvm-devel. All ↵Max Horn
changes are just fine, and won't cause any compile problems or regressions, despite the fact that I can't test most of the non-SDL backend changes, at an improbability level of two to the power of two hundred and seventy-six thousand to one against - possibly much higher. Anything you still can't cope with is therefore your own problem. Please relax. svn-id: r27548
2007-06-15Fix for bug #1690813: BASS: Crash when changing scalers during introMax Horn
svn-id: r27435
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-03-17Moved Event/EventType/keyboard enum from common/system.h (part of class ↵Max Horn
OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again svn-id: r26180
2006-11-13Implement FR #1595534: "Touche: Aspect Ratio Correction"Eugene Sandulenko
svn-id: r24706