aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl
AgeCommit message (Collapse)Author
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-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-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-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-19DINGOO: new port. Patch #3039277Eugene Sandulenko
svn-id: r52210
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-12Get rid of yet another global object with constructorMax Horn
svn-id: r50835
2010-07-12SDL: Tweak OSystem_SDL::detectSupportedFormats a bitMax Horn
Previously, the code in OSystem_SDL::detectSupportedFormats assumed that the arrays RGBList and BGRList had the exact same length, and that the entries in each mirrored those in the other 100%. Instead of relying on that, the code now simply iterates over both lists separately. This changes the resulting order a bit, but since we never gave any guarantees on that, this should not matter. svn-id: r50833
2010-07-12SDL: Overhaul OSystem_SDL::getSupportedFormatsMax Horn
* Do not use global constructor for the RGBList and BGRList tables anymore, by moving them inside a function. * Update the list of supported formats if the hardware screen surface changes. Previously, the list of supported pixel formats (and its order) was computed only once and then never changed. svn-id: r50832
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-26GUI: Add and improve some messages to translateJordi Vilalta Prat
svn-id: r50324
2010-06-16Fix for Valgrind Uninitialised Error from SDL_Event in sdl backend and ↵David Turner
derived backends. svn-id: r49902
2010-06-15SDL: only change mouse cursor, when mouse is currently within our window, ↵Martin Kiewitz
also enable mouse position changing again for SCI svn-id: r49866
2010-06-15SYSTEM: Unify OSystem::getSupportedFormats() signatureMax Horn
svn-id: r49838
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-29Removed some unused variables, found by cppcheck.Torbjörn Andersson
svn-id: r49306
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-04-20abort() when calling setPalette() or grabPalette() in non CLUT8 modes.Andre Heider
svn-id: r48757
2010-04-04Commit of patch #2980597 "GSoC: GUI: Text input + Right Alt (bug #2978736)".Johannes Schickel
svn-id: r48524
2010-03-22Patch #2973290: Semicolon cleanupMax Horn
svn-id: r48359
2010-03-18COMMON: Move typedef StringList from str.h to new header str-array.hMax Horn
This removes the dependency on array.h from str.h. Also, begun migration from the confusing type name "StringList" to the more appropriate StringArray. svn-id: r48282
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-03-08Move some aspect ratio related stuff to graphics/scaler/aspect.hMax Horn
svn-id: r48186
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
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-07- Adapt documentation, that keycolor in setMouseCursor may not exceed the ↵Johannes Schickel
maximum color value of the specified format. - Change SDL backend to assert out on invalid keycolor values In case we really need a way to specify "no keycolor" we need to discuss on how to do it *properly*. svn-id: r47123
2009-12-19Silence some gcc 3.4.5 warnings.Matthew Hoops
svn-id: r46415
2009-12-04Prevent SDL backend from eating up keypress events with Ctrl+Alt set.Johannes Schickel
svn-id: r46259
2009-11-30Remove use_scaler defines around enum in order for graphics to compile properly.Lars Persson
svn-id: r46216
2009-11-18samsungtv: no need make surface conversion here any more, sdl do that with ↵Paweł Kołodziejski
internal emulation svn-id: r45971
2009-11-15samsungtv: no need anymore exception for broken SDL_ShowCursorPaweł Kołodziejski
svn-id: r45931
2009-11-15Make _mouseKeyColor a uint32 when USE_RGB_COLOR is defined to fix key color ↵Matthew Hoops
with some cursors when using a >8bpp cursor. svn-id: r45929
2009-11-15Made Alt-s (screenshot) work again.Torbjörn Andersson
svn-id: r45921
2009-11-14samsungtv: continue reduction of code duplicationPaweł Kołodziejski
svn-id: r45900
2009-11-11added more cases for samsungtv to allow reuse main sdl codePaweł Kołodziejski
svn-id: r45835
2009-11-11Remove (now) obsolete HACK for WIN32.Johannes Schickel
svn-id: r45832