aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl
AgeCommit message (Collapse)Author
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-29COMMON: Applied patch #3121969 - "WIN32_LEAN_AND_MEAN in incorrect place"Filippos Karapetis
svn-id: r54567
2010-11-28SDL: Reduce redundant deletes from OSystem_SDL destructorMax Horn
svn-id: r54554
2010-11-28SDL: Compiled POSIX sub-backend only on unix systemsMax Horn
svn-id: r54538
2010-11-28SDL: Added missing #define FORBIDDEN_SYMBOL_ALLOW_ALL for the Win32 SDL backendFilippos Karapetis
svn-id: r54527
2010-11-28SDL: Merge deinit() into OSystem_SDL destructor and overload fatalErrorMax Horn
svn-id: r54526
2010-11-28SDL: Fix compilation on Windows too.Johannes Schickel
svn-id: r54524
2010-11-28SDL: Make SDL backend compile again.Johannes Schickel
svn-id: r54523
2010-11-28Merging the gsoc2010-opengl branchMax Horn
svn-id: r54518
2010-11-28BACKEND: Switch OSystem::getSystemLanguage return type to Common::String.Johannes Schickel
This is done as discussed on -devel. svn-id: r54516
2010-11-26I18N: Fix language detection in UNIX (not everyone speaks German yet)Jordi Vilalta Prat
svn-id: r54494
2010-11-26SDL: Hook up file logger to log on Windows.Johannes Schickel
For now the log file will be either "%APPDATA%/ScummVM/Logs/scummvm.log" or "%USERPROFILE%/Application Data/ScummVM/Logs/scummvm.log" to match the location of the default ScummVM configuration file. svn-id: r54490
2010-11-26SDL: Hook up file logger to log on UNIX-like systems.Johannes Schickel
As discussed on -devel this always logs to ~/.scummvm/logs/scummvm.log. svn-id: r54489
2010-11-25OSYSTEM: Add API to query the system locale.Johannes Schickel
I also adapted the SDL backend to implement the API. svn-id: r54479
2010-11-18BACKENDS: Implement logging API proposed by Max on -devel.Johannes Schickel
This commits a slightly modified patch from my patch tracker item #3104630 "OSYSTEM: Add logging API as proposed by Max on -devel". I was not able to test compilation on Android and SamsungTV, since there is no toolchain for those on buildbot (or I was too blind to find them). svn-id: r54339
2010-11-08BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes onlyMax Horn
This commit contains the AudioCDManager changes from the gsoc2010-opengl branch. The other changes in that branch are restricted to the backends directory only (plus configure). The Nintendo DS and Dreamcast ports still need to be ported over to the new Audio CD system, but that should be fairly easy to do. svn-id: r54147
2010-10-30ALL: Add code to help stop people from accidentally using "bad" APIsMax Horn
A new header file common/forbidden.h is included by scummsys.h and it re-#defines numerous symbols like fopen(), fread(), system(), etc. with garbage, in order to provoke compile errors in any code using them. If a .cpp file really *must* use any of these (e.g. because it is a backend file), then these redefinitions can be disabled by #defining FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever this is done, an explanatory comment should be added. Note that this system cannot catch all "bad" usages (notably the Lua code in the sword25 engine), as it can only work if scummsys.h is included. svn-id: r53961
2010-10-24SDL/win32: fix lf, thx msvcMartin Kiewitz
svn-id: r53768
2010-10-24SDL/w32: add ability to hide consoleMartin Kiewitz
feature is currently commented out - waiting till discussion has ended svn-id: r53767
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-21OPENGL: Add an SdlEventSource member to OSystem_SDL instead of subclassing ↵Johannes Schickel
SdlEventSource. Derived backends are allowed to overwrite that member in case they need special handling of SDL events. svn-id: r53675
2010-10-20GPH: Cleanup Readme and support scripts.John Willis
GP2X: Cleanup Readme. SDL: Change a few backend defines to GPH_DEVICE from the device name (blocking main and loadGFXMode so they can be written elsewhere). svn-id: r53639
2010-10-13OPENGL: Cleanup.Johannes Schickel
svn-id: r53436
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-10-12JANITORAL: Clean trailing whitespaces.Jordi Vilalta Prat
svn-id: r53160
2010-09-28SDL: Fix for 32 bit mode support (untested; might be good for backporting, ↵Max Horn
not sure, somebody should verify) svn-id: r52934
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-09-06SDL: Add masks to the SDL backend to support the OpenPandora backend.John Willis
svn-id: r52599
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-31SCI: still set game cursor, when mouse outsideMartin Kiewitz
of ScummVM window. Just don't change actual mouse position svn-id: r52472
2010-08-30I18N: Add "lowres" context for several GUI strings when in 1x mode.Thierry Crozat
This enables translators to use a different translation for these strings in 1x mode (e.g. 320x200 or 320x240) and in 2x or 3x modes. svn-id: r52461
2010-08-23SDL/OPENGL: Fix segfault when using -g command line option.Alejandro Marzini
svn-id: r52307
2010-08-23AMIGAOS: Fix build.Alejandro Marzini
svn-id: r52306
2010-08-23AMIGAOS: Again, fix build.Alejandro Marzini
svn-id: r52304
2010-08-23AMIGAOS: Fix build.Alejandro Marzini
svn-id: r52303
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-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-30SDL: Add SDL backend subfolders paths to makefile MODULE_DIRS.Alejandro Marzini
This should fix subfolders sources not recompiling after a header change. svn-id: r51489
2010-07-29BUILD: Unify how MODULE_DIRS is computed for backendsMax Horn
This should help avoid situations where MODULE_DIRS is not set to a complete list of build dirs (which causes troubles with the automatic header dependency detection logic). On the long run, we should replace the relevant code by a macro or also use rules.mk for this (with yet another if/else case add to it). svn-id: r51467
2010-07-23SDL: Fix bug #3025258Eugene Sandulenko
Bug #3025258: "Cursor Leaves Trail in GUI when Screen is Shaking". Based on patch provided by eriktorbjorn but extended with another edge case. svn-id: r51212
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-13Check if USE_OPENGL is defined for compiling OpenGL code.Alejandro Marzini
svn-id: r50842