Commit Graph

293 Commits

Author SHA1 Message Date
Eugene Sandulenko
14ec3f45fa - Heavily modified patch : "Disable overlay scaling"
- 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
  : "GUI: SCUMM pause dialog breaks upon scaler switch" which needs more
  work.
- I probavly broke some backend or two

svn-id: r22505
2006-05-17 23:52:45 +00:00
Eugene Sandulenko
d2546e3979 - Updated MSVC8 project files
- 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-05-09 14:16:43 +00:00
Lars Persson
86bc1d4923 Add creation of Symbian SDL backend instead of plain SDL
svn-id: r22071
2006-04-21 20:49:06 +00:00
Eugene Sandulenko
e7af211fb5 Remove AmigaOS4 cookie as described in patch : "AmigaOS changes":
- Icon (icons/scummvm.info) contains stack requirement so the stack cookie
  can be removed

svn-id: r21863
2006-04-14 01:14:38 +00:00
Eugene Sandulenko
ab799101c0 First batch of root directory cleanup. Now icons are stored in directory
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-14 00:55:37 +00:00
Travis Howell
8dced54111 Add SDL_SetModuleHandle to WinMain
svn-id: r21710
2006-04-09 01:59:47 +00:00
Max Horn
e4930bd96d Don't use HAVE_CONFIG_H / config.h directly, use scummsys.h instead
svn-id: r21605
2006-04-04 21:45:13 +00:00
Max Horn
e9bc5ba280 Backends now are also responsile for deiniting properly. In particular, 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-02 14:31:23 +00:00
Max Horn
9217472f0e With this change, backends are now responsible for instantiating their OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently)
svn-id: r21557
2006-04-02 14:16:31 +00:00
Travis Howell
72f4a1c76c Fix console output been redirected under win32 build, due to main changes. Remove NO_CONSOLE, since it is never defined
svn-id: r21554
2006-04-02 13:33:36 +00:00
Max Horn
f8bb142f0b Fixing the X11 & NULL backends by adding main()
svn-id: r21553
2006-04-02 10:01:58 +00:00
Max Horn
2fd027846e Moved AmigaOS 'magic cookie' to sdl.cpp, as it is port specific (porter says he might remove it completly in a future version)
svn-id: r21550
2006-04-02 09:26:51 +00:00
Max Horn
9b08d8e467 Moved the Win/Symbian specific stdout/stderr redirect code from base/main.cpp to sdl.cpp, where it belongs (considering that it is backend specific code)
svn-id: r21547
2006-04-02 02:23:29 +00:00
Max Horn
587431f8e8 Fully and officially renamed our main function to scummvm_main, thus making
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-04-02 00:08:22 +00:00
Max Horn
99635b6a90 Removed implicit screen updates (see also the discussion on scummvm-devel)
svn-id: r21385
2006-03-19 17:14:43 +00:00
Max Horn
0a3e4f04e5 Use SDL_GetError in an attempt to display slightly more information about the reason(s) SDL_SetVideoMode failed
svn-id: r21291
2006-03-14 14:37:13 +00:00
Eugene Sandulenko
233c2a42f9 WIP of maemo port
svn-id: r21055
2006-03-04 01:32:04 +00:00
Torbjörn Andersson
8acefe1804 The warpMouse() function needs to compensate for aspect-ratio correction, or
the Lure popup menus won't work.

svn-id: r20915
2006-02-26 14:31:44 +00:00
Eugene Sandulenko
a3faba9727 Fix bug : "SCUMM, GUI: Cursor jumps to incorrect position when pausing"
svn-id: r20904
2006-02-26 03:03:59 +00:00
Max Horn
7335d348ba Moved common/scaler* to graphics/
svn-id: r20797
2006-02-20 20:29:02 +00:00
Torbjörn Andersson
d2cf43d6fa Fixed warning when compiling with DISABLE_SCALERS
svn-id: r20786
2006-02-20 14:12:59 +00:00
Max Horn
80cf2fa46f Reduced data duplication in module.mk files; added module.mk files for null and x11 backends; added engines/module.mk
svn-id: r20584
2006-02-12 00:16:31 +00:00
Max Horn
cbb2ca005c Change CVS keywords to SVN keywords
svn-id: r20535
2006-02-11 12:47:47 +00:00
Max Horn
0ad58cdb95 Removed .cvsignore files
svn-id: r20424
2006-02-07 22:50:14 +00:00
Eugene Sandulenko
ea42bad781 Update copyright notice
svn-id: r20088
2006-01-18 17:39:49 +00:00
Max Horn
3cc22c638c Added asserts to OSystem_SDL::copyRectToScreen, which should detect any attempts to use invalid rects for blitting
svn-id: r19521
2005-11-08 22:23:09 +00:00
Torbjörn Andersson
1c6575b824 Moved aspect ratio disabling (if screen height != 200) from initSize() to
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-11-07 08:35:50 +00:00
Eugene Sandulenko
b725a206c0 Add possibility to disable SDL parachute on run-time. Option
--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-18 03:52:21 +00:00
Eugene Sandulenko
b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Nicolas Bacca
6471cf82d1 Temporarily virtualize mouse drawing functions for the WinCE port. Hope that line endings are correct since I have to use TortoiseCVS for this update :)
svn-id: r19115
2005-10-16 22:32:46 +00:00
Eugene Sandulenko
aa33153569 Normalize use of DISABLE_SCALERS. Now it really disables all scalers
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-09-20 18:16:09 +00:00
Eugene Sandulenko
76bd872c48 Apply bug/patch "GUI: SDL mouse dirty rects too big"
svn-id: r18689
2005-08-15 01:23:41 +00:00
Eugene Sandulenko
6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +00:00
Max Horn
71bc3a3ba6 Move scaler key handling to a separate method (this helps to fix a GCC 4.0 warning, makes pollEvent() cleaner); fixed some code formatting issues
svn-id: r18534
2005-07-11 10:54:53 +00:00
Eugene Sandulenko
aa13ccd6c3 Commited patch to fix bug : "ALL: Failed assertion in AdvMame scaler".
Thanks cyx for actual fixing.

svn-id: r18520
2005-07-09 06:44:00 +00:00
Lars Persson
caf6151bba Last modifications for Actions to WinCE.
svn-id: r18500
2005-07-05 20:51:54 +00:00
Lars Persson
d4716a1fb5 * Start of generic key configuration support for ScummVM
* Moved KeyConfigDialog, key from WinCE to gui
* Updated wince code to inherit and use new GUI::Keys and launch new dialog
* New definition SMALL_SCREEN_DEVICE when keysdialog should be inittialized from options.cpp
* Added new function to SDL\Events that handles key remapping.  LINUPY & QTOPIA remapping moved to that function. SymbianOs.cpp overrides this function to enable key remapping to events
* Compiled VC6++ project. This with warnings and errors, but NOT in the changed code. (SAGA,KYRA)
* Compiled using WCE tools 3 for X86 target and running Scummvm in emulator to test
* Compiled with UIQ target. The rest Symbian platforms might require further configuration to operate properly
* Actor.h in Saga now compiles for default VC6 setting.
* Aspect.cpp does not compile in VC6/WCE due to template problems with the kFastAndNiceAspectMode setting.
* Changed order of creation of gamedetector and mainsystem in Main.cpp
* If anything does not compile, or is totally out of order, please revert changes.

svn-id: r18498
2005-07-05 20:22:56 +00:00
Lars Persson
0047a768f2 This is the SDL changes needed by the Symbian build to work properly.
Also there is a bugfix for using the joystick handling for SDL. (See events.cpp history)

svn-id: r18428
2005-06-21 20:39:09 +00:00
Torbjörn Andersson
4b5ff5ba1f Be less prone to crash on really, really stupid output sample rates.
Added warning message if SDL_OpenAudio() fails. Might help diagnosing bug
reports like .

svn-id: r18361
2005-06-07 14:43:12 +00:00
Torbjörn Andersson
9ffe00b78d Added braces for clarity.
svn-id: r18295
2005-05-29 18:07:46 +00:00
Eugene Sandulenko
3588b96d4f Added --disable-hq and --disable-scumm-7-8 options. Also improved
DISABLE_HE so more HE-specific code gets excluded.

svn-id: r18099
2005-05-14 22:56:41 +00:00
Max Horn
013e30eb38 Added two new methods to OSystem: grabPalette and grabRawScreen
svn-id: r17974
2005-05-08 21:39:05 +00:00
Max Horn
d04492a05a Allocate all 16bit surfaces with the same bitformat as the HW surface (Fixes bug )
svn-id: r17929
2005-05-06 10:07:33 +00:00
Torbjörn Andersson
777618ddf9 Always check for _numDirtyRects overflow in addDirtyRect(). The 'mouseRect'
case didn't. This fixes bug .

svn-id: r17888
2005-05-01 17:39:38 +00:00
Torbjörn Andersson
6fb944befd Call blitCursor() when changing scaler to give it the opportunity to switch
between blurry and non-blurry cursor scaling, even if the scale factor
remains unchanged.

svn-id: r17841
2005-04-27 14:47:19 +00:00
Max Horn
3f08f0bfb2 Fix bug 1184616 (GUI: Mouse drawn at wrong position in overlay mode)
svn-id: r17709
2005-04-20 09:32:22 +00:00
Max Horn
901e76ea83 Cleanup / comments
svn-id: r17708
2005-04-20 09:24:29 +00:00
Max Horn
2cfb9322e2 Added new (optional) OSystem::initBackend() method; this (and its usage) fixes bugs and
svn-id: r17694
2005-04-19 20:22:50 +00:00
Torbjörn Andersson
d85f6d1688 More whitespace.
svn-id: r17691
2005-04-19 12:43:54 +00:00
Torbjörn Andersson
35c675e2d2 Whitespace
svn-id: r17690
2005-04-19 12:22:50 +00:00