aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
AgeCommit message (Collapse)Author
2006-06-04"They sought it with thimbles, they sought it with care;Torbjörn Andersson
They pursued it with forks and hope; They threatened its life with a railway-share; They charmed it with smiles and soap." Maybe this time the elusive cursor hotspot bugs will finally be fixed, once and for all. The blitCursor() function now calculates both the real and the virtual dimensions of the cursor, since they may both be different from the original dimensions. svn-id: r22913
2006-06-03More maemo port developmentEugene Sandulenko
svn-id: r22849
2006-05-27The dirty rect produced by drawMouse() is updated without going through anyTorbjörn Andersson
scaling or aspect-ratio correction, so it has to be added using real surface coordinates. So I had to re-introduce the extra parameter to addDirtyRect(). svn-id: r22681
2006-05-27fix warpmouse in overlay-mode; fixes cursor jumps when opening menuWillem Jan Palenstijn
svn-id: r22679
2006-05-25unused variableWillem Jan Palenstijn
svn-id: r22633
2006-05-25fix hotspot handling when overlay visibleWillem Jan Palenstijn
svn-id: r22631
2006-05-24The AGI engine's save/load dialog dirties the entire screen thirteen timesTorbjörn Andersson
each iteration of the loop, causing a serious slowdown on my computer. It empathically should not be doing that, of course, but to safe-guard against such patological cases, if the entire screen is dirtied even once we can set _forceFull to true. svn-id: r22616
2006-05-23fix VC & SDL 1.2.10 compilation errorAndrew Kurushin
svn-id: r22585
2006-05-21Don't crash if drawMouse() is called before _mouseSurface is created.Torbjörn Andersson
svn-id: r22562
2006-05-20fixed compilation when DISABLE_SCALERSPaweł Kołodziejski
svn-id: r22551
2006-05-20fix compilation, that variable no longer existsPaweł Kołodziejski
svn-id: r22550
2006-05-20Removed stray printf() from earlier commit.Torbjörn Andersson
svn-id: r22542
2006-05-20Re-render the cursor when enabling/disabling cursor palette. Also, I don'tTorbjörn Andersson
think _cursorHasOwnPalette is needed any more, so I've removed it. svn-id: r22541
2006-05-20Our GUI uses the "cursor palette" feature, but the SDL backend did not use theTorbjörn Andersson
cursor palette in overlay mode. Now it does, which fixes bug #1476666. The reason it worked at all before was that blitCursor() was called while still not in overlay mode. This, of course, means that the GUI can corrupt the in-game cursor palette. I don't have any game that uses this feature, so I don't know if it's properly restored again afterwards. But if it isn't, that should be fairly easy to fix. svn-id: r22539
2006-05-20Fixed cursor drawing in the classic theme.Torbjörn Andersson
svn-id: r22538
2006-05-19Slighty modified patch #1491859: "Possible fix for recent cursor regressions"Eugene Sandulenko
svn-id: r22535
2006-05-18- Revert additional setUpCursor() call as it broke in-game cursor paletteEugene Sandulenko
- Disable scaling for cursors which have target scale defined svn-id: r22509
2006-05-17- Heavily modified patch #1214784: "Disable overlay scaling"Eugene Sandulenko
- Eriktorbjorn's patch from same tracker item for scaling sword1/2 cutscenes is applied as is. It lacks resolution switch on-the-fly. - GUI widgets are repositioned on the fly and use most space, even aspect ratio corrected screen is used without scaling - Heavy tesing is required, but works for me in all cases except for bug #1483272: "GUI: SCUMM pause dialog breaks upon scaler switch" which needs more work. - I probavly broke some backend or two svn-id: r22505
2006-05-09- Updated MSVC8 project filesEugene Sandulenko
- Renamed base/options.cpp to base/commandLine.cpp because of conflict with gui/options.cpp which sit in same directory in MSVC builds - Moved AudioCDManager singleton declaration outside of Audio namespace - Fixed numerous MSVC warning of potentially uninitialized variables and int <-> bool conversions. svn-id: r22397
2006-04-21Add creation of Symbian SDL backend instead of plain SDLLars Persson
svn-id: r22071
2006-04-14Remove AmigaOS4 cookie as described in patch #1467193: "AmigaOS changes":Eugene Sandulenko
- Icon (icons/scummvm.info) contains stack requirement so the stack cookie can be removed svn-id: r21863
2006-04-14First batch of root directory cleanup. Now icons are stored in directoryEugene Sandulenko
icons/ and all other assorted stuff in dists/ directory. Still I may broke some packaging/building procedures as no testing was performed. svn-id: r21859
2006-04-09Add SDL_SetModuleHandle to WinMainTravis Howell
svn-id: r21710
2006-04-04Don't use HAVE_CONFIG_H / config.h directly, use scummsys.h insteadMax Horn
svn-id: r21605
2006-04-02Backends now are also responsile for deiniting properly. In particular, ↵Max Horn
moved the call to quit() from scummvm_main to the various backend main routines (porters may want to replace it by something different) svn-id: r21559
2006-04-02With this change, backends are now responsible for instantiating their ↵Max Horn
OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently) svn-id: r21557
2006-04-02Fix console output been redirected under win32 build, due to main changes. ↵Travis Howell
Remove NO_CONSOLE, since it is never defined svn-id: r21554
2006-04-02Fixing the X11 & NULL backends by adding main()Max Horn
svn-id: r21553
2006-04-02Moved AmigaOS 'magic cookie' to sdl.cpp, as it is port specific (porter says ↵Max Horn
he might remove it completly in a future version) svn-id: r21550
2006-04-02Moved the Win/Symbian specific stdout/stderr redirect code from ↵Max Horn
base/main.cpp to sdl.cpp, where it belongs (considering that it is backend specific code) svn-id: r21547
2006-04-02Fully and officially renamed our main function to scummvm_main, thus makingMax Horn
various backend specific hacks unnecessary. As a consequence, it is now the responsibility of the backend to define main. Hence I adapted the SDL backend accordingly. svn-id: r21542
2006-03-19Removed implicit screen updates (see also the discussion on scummvm-devel)Max Horn
svn-id: r21385
2006-03-14Use SDL_GetError in an attempt to display slightly more information about ↵Max Horn
the reason(s) SDL_SetVideoMode failed svn-id: r21291
2006-03-04WIP of maemo portEugene Sandulenko
svn-id: r21055
2006-02-26The warpMouse() function needs to compensate for aspect-ratio correction, orTorbjörn Andersson
the Lure popup menus won't work. svn-id: r20915
2006-02-26Fix bug #1349059: "SCUMM, GUI: Cursor jumps to incorrect position when pausing"Eugene Sandulenko
svn-id: r20904
2006-02-20Moved common/scaler* to graphics/Max Horn
svn-id: r20797
2006-02-20Fixed warning when compiling with DISABLE_SCALERSTorbjörn Andersson
svn-id: r20786
2006-02-12Reduced data duplication in module.mk files; added module.mk files for null ↵Max Horn
and x11 backends; added engines/module.mk svn-id: r20584
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20535
2006-02-07Removed .cvsignore filesMax Horn
svn-id: r20424
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-11-08Added asserts to OSystem_SDL::copyRectToScreen, which should detect any ↵Max Horn
attempts to use invalid rects for blitting svn-id: r19521
2005-11-07Moved aspect ratio disabling (if screen height != 200) from initSize() toTorbjörn Andersson
loadGfxMode(). As reported on the forum, setting aspect ratio correction in a 640x480 game would cause ScummVM to crash when the game is started from the launcher. With all the graphics transactions and stuff, it's a bit hard to follow what's going to happen, but I hope deferring this check until the last moment (i.e. just before the graphics surfaces are actually created) is the correct bugfix. svn-id: r19491
2005-10-18Add possibility to disable SDL parachute on run-time. OptionEugene Sandulenko
--disable-sdl-parachute should be completely undocumented and not mentioned to end-users. Wrong usage may lead to system lock-up especially when used with fullscreen mode. SDL Parachute is used to prevent system instability and do a graceful exit if something bad happens. It catches most of signals sent to thr process. Side effect of that that quite often when SDL application dies, core dump isn't made on *nix systems. This feature adds possibility to disable it. svn-id: r19146
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-10-16Temporarily virtualize mouse drawing functions for the WinCE port. Hope that ↵Nicolas Bacca
line endings are correct since I have to use TortoiseCVS for this update :) svn-id: r19115
2005-09-20Normalize use of DISABLE_SCALERS. Now it really disables all scalersEugene Sandulenko
except essential Normal1x. Also thumbnails get compiled unconditionally so we get them on all platforms, even those which never display them. Sorted out mess brought to sdl backend by epoc maintainer. He misused __SYMBIAN32__ where DISABLE_SCALERS is more appropriate. svn-id: r18850
2005-08-15Apply bug/patch #1258912 "GUI: SDL mouse dirty rects too big"Eugene Sandulenko
svn-id: r18689
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604