aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/sdl.cpp
AgeCommit message (Collapse)Author
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-09-03OPENGL: Properly initialize the graphics manager again.Johannes Schickel
Starting with r52503 the graphics manager's only initialize their event observer when initEventObserver is called. It seems like it was an oversight that this was not done in OSystem_SDL::setGraphicsMode, when a new graphics manager was initialized. This should fix window resizing with the OpenGL graphic's manager and mouse movement. svn-id: r52506
2010-09-03SDL/OPENGL: Fix backend initialization when building with ENABLE_VKEYBD.Alejandro Marzini
svn-id: r52503
2010-08-23SDL/OPENGL: Fix segfault when using -g command line option.Alejandro Marzini
svn-id: r52307
2010-08-19DINGOO: new port. Patch #3039277Eugene Sandulenko
svn-id: r52210
2010-07-31OPENGL: Add support for BGR and rgb(a) reversed formats (Not available for ↵Alejandro Marzini
GLES). General cleanup and commenting. svn-id: r51559
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-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-13Check if USE_OPENGL is defined for compiling OpenGL code.Alejandro Marzini
svn-id: r50842
2010-07-12Get rid of yet another global object with constructorMax Horn
svn-id: r50835
2010-07-11Moved getGraphicsManager() from OSystem_SDL to ModularBackend. Moved public ↵Alejandro Marzini
SDL graphics manager functions to graphics manager (Allowing OpenGLSdlGraphicsMaanger to be used with other SDL managers easily). Removed BaseSdlGraphicsManager. Implemented in the opengl manager basic screen functions. svn-id: r50796
2010-07-10Added BaseSdlGraphicsManager. Added GLTexture. Alejandro Marzini
svn-id: r50795
2010-06-29Modularized Linuxmoto port.Alejandro Marzini
svn-id: r50474
2010-06-27Improved getDefaultConfigFileName(). Code cleanup.Alejandro Marzini
svn-id: r50364
2010-06-26Define WIN32_LEAN_AND_MEAN before including windows.h.Johannes Schickel
This will cause our code to include less functionality, but might on the other hand fasten up the compilation. svn-id: r50346
2010-06-26Removed DEFAULT_CONFIG_FILE define in favor of new getConfigFileNameString ↵Alejandro Marzini
function. svn-id: r50301
2010-06-24Added a init function to OSystem_SDL for early backend setup, and so ↵Alejandro Marzini
allowing better sub classing. svn-id: r50224
2010-06-24Refactored SDL mixer manager. Created a SdlMixerManager subclass for Mac OSX.Alejandro Marzini
svn-id: r50198
2010-06-23Fixed AudioCDManager not having a public inheritance. Backend code cleanup.Alejandro Marzini
svn-id: r50189
2010-06-20Created win32 port from sdl backend.Alejandro Marzini
svn-id: r50103
2010-06-20Removed getMillis, delayMillis and getTimeAndDate functions from TimerManager.Alejandro Marzini
svn-id: r50095
2010-06-15Improved ModularBackend and OSystem_SDL destructors.Alejandro Marzini
svn-id: r49679
2010-06-13Added SdlTimerManager. Added getMillis, delayMillis and getTimeAndDate to ↵Alejandro Marzini
Common::TimerManager, DefaultTimerManager and ModularBackend. Removed timer code from OSystem_SDL. svn-id: r49637
2010-06-13Added SdlEventManager.Alejandro Marzini
svn-id: r49635
2010-06-12Created SdlMixerImpl. Added setSampleRate method to Audio::MixerImpl. ↵Alejandro Marzini
Updated and removed mixer code in OSystem_SDL for using SdlMixerImpl. svn-id: r49602
2010-06-11Fixed compilation error on Mac.Alejandro Marzini
svn-id: r49600
2010-06-11Add Common::EventSource inheritance for ModularBackend. OSystem_SDL now ↵Alejandro Marzini
subclass from ModularBackend insteand of BaseBackend. Added forceFullRedraw() to SdlGraphicsManager and removed _modeChanged. svn-id: r49590
2010-06-10Made creation of SdlMutexManager earlier than other modules.Alejandro Marzini
svn-id: r49555
2010-06-09- Revised abstract AudioCDManager.Alejandro Marzini
- Removed AudioCDManager Singleton, and changed code for using AudioCDManager in OSystem. - Added initialization code for new AudioCDManager in BaseBackend and OSystem_SDL. svn-id: r49548
2010-06-07Removed code that is now in managers. Added mutex and graphics manager ↵Alejandro Marzini
initialization and functions redirections. svn-id: r49473
2010-06-02OSYSTEM: Get rid of kFeatureAutoComputeDirtyRectsMax Horn
svn-id: r49388
2010-06-01Inline palettes in SDL backend into class OSystem_SDLMax Horn
svn-id: r49383
2010-05-21SDL: Split quit() method into deinit() so error codes could be returned.Eugene Sandulenko
svn-id: r49131
2010-05-21Fix spellingEugene Sandulenko
svn-id: r49130
2010-05-10Revert r48979. Instead, make the HQ scalers depend on the normal ones. ↵Andre Heider
Configure reflects that now. svn-id: r48996
2010-05-09Since configure allows HQ scalers without the normal onces, allow this ↵Andre Heider
combination. svn-id: r48979
2010-05-09Rename DISABLE_*SCALERS to USE_*SCALERS, and move the mk/cpp defines to ↵Andre Heider
configure. svn-id: r48977
2010-03-11Replace Audio::MixerImpl::setOutputRate with a new 'sampleRate' param to the ↵Max Horn
MixerImpl constructor svn-id: r48238
2010-03-10Remove last traces of OSystem::getOutputSampleRate()Max Horn
svn-id: r48229
2010-02-21Patch for bug 2943361 by littleboy, adding full kb modifier support to all ↵Yotam Barnoy
engines + GUI and proper keypad handling svn-id: r48101
2010-01-25Fix sample buffer calculation. Now it really asks for a buffer of 2048 ↵Johannes Schickel
samples for 22050Hz, like the comment states. svn-id: r47558
2009-11-15samsungtv: no need anymore exception for broken SDL_ShowCursorPaweł Kołodziejski
svn-id: r45931
2009-11-11added more cases for samsungtv to allow reuse main sdl codePaweł Kołodziejski
svn-id: r45835
2009-11-11samsungtv: move DEFAULT_CONFIG_FILE into main sdl code to prevent code ↵Paweł Kołodziejski
duplication svn-id: r45831
2009-11-09SDL: Factor code from OSystem_SDL::pollEvent into various new virtual ↵Max Horn
methods, to make it easier to customize these (no code indention changes for easier diffing) svn-id: r45792
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-08Introduce a new struct TimeDate, replacing struct tm in client code. May ↵Max Horn
lead to compilation issues in ports, which should be trivial to fix, though svn-id: r44793
2009-08-22Give meaningful name to variableEugene Sandulenko
svn-id: r43647