109 Commits

Author SHA1 Message Date
Eugene Sandulenko
a681ebad7d More maemo port development
svn-id: r22849
2006-06-03 01:05:09 +00:00
Willem Jan Palenstijn
14774d1760 fix hotspot handling when overlay visible
svn-id: r22631
2006-05-25 19:43:33 +00:00
Torbjörn Andersson
407cb66502 Re-render the cursor when enabling/disabling cursor palette. Also, I don't
think _cursorHasOwnPalette is needed any more, so I've removed it.

svn-id: r22541
2006-05-20 09:27:56 +00:00
Eugene Sandulenko
14ec3f45fa - Heavily modified patch #1214784: "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
  #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-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 #1467193: "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
Eugene Sandulenko
233c2a42f9 WIP of maemo port
svn-id: r21055
2006-03-04 01:32:04 +00:00
Max Horn
cbb2ca005c Change CVS keywords to SVN keywords
svn-id: r20535
2006-02-11 12:47:47 +00:00
Eugene Sandulenko
ea42bad781 Update copyright notice
svn-id: r20088
2006-01-18 17:39:49 +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
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
6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +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 #1206314.

svn-id: r18361
2005-06-07 14:43:12 +00:00
Max Horn
2cfb9322e2 Added new (optional) OSystem::initBackend() method; this (and its usage) fixes bugs #1160977 and #1184664
svn-id: r17694
2005-04-19 20:22:50 +00:00
Torbjörn Andersson
0641b05f0c Initialize some overlay-related variables, just to be safe.
svn-id: r17065
2005-03-10 15:43:08 +00:00
Eugene Sandulenko
7bb53f3bf1 Patch #1013937 "OSystem layer with bigger resolution". Now you will always
get at least 640x400 window. And finally we have means of implementing
nice looking GUI.

Also updated all backends. If your backend has ability to run with 640x400 or
640x480 resolution then read patch tracker item to find out details. Other
port maintainers shouldn't worry, as this patch doesn't affect them, they
still get their 320x200.

svn-id: r17055
2005-03-09 23:07:32 +00:00
Eugene Sandulenko
f420dd3b78 Implement OSystem method disableCursorPalette(bool disable) as mentioned
in patch #1013937 (OSystem layer with bigger resolution).

svn-id: r16820
2005-02-20 02:04:45 +00:00
Eugene Sandulenko
78ee0bfdaf Mouse part of big patch #1013937 (OSystem layer with bigger resolution)
svn-id: r16800
2005-02-17 23:01:00 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
095549125b getFeatureState should only be allowed when we are *not* in a GFX transaction (and not vice versa)
svn-id: r15982
2004-12-04 14:47:22 +00:00
Gregory Montoir
cdec823d98 renamed a few things to match our coding guidelines
simplified OSystem_SDL destructor and move all the SDL uninitialization stuff to the quit() method
made saveScreenshot() returning false on fail

svn-id: r15967
2004-12-01 21:16:55 +00:00
Eugene Sandulenko
7877ccf628 Next step in transaction implementation. Now it postpones all calls.
NOTE: This breaks most ports, and they will not pass assertions. If you will
fix it (by moving violating OSystem calls to go() method), I'll be grateful.
If you don't bother to fix it, there is a workaround. Just comment out
beginGFXTransaction() and endGFXTransaction() in backends/sdl/graphics.cpp.
This will tunr it off and will use default transaction-less implementation.

svn-id: r15870
2004-11-23 21:30:38 +00:00
Max Horn
bb462f64e0 Renamed _scaler_proc -> _scalerProc; cleaned up _scalerType handling
svn-id: r15563
2004-10-15 22:28:12 +00:00
Max Horn
ce8c99bf62 Rename remaining OSystem methods to match our coding guidelines
svn-id: r15332
2004-09-28 20:19:37 +00:00
Torbjörn Andersson
70f8f689a1 Applied patch #957544 to make output sample rate configurable at runtime.
svn-id: r14225
2004-07-16 10:24:29 +00:00
Max Horn
f2f1687988 Only show gfx mode change messages in the OSD if the change was initiated by the user; not if it was done automatically (e.g. because a 640x480 game was started and we auto-switch to 1x scaling)
svn-id: r14223
2004-07-16 09:29:09 +00:00
Nicolas Bacca
5d81e3b785 Tweak SDL init for WinCE backend
svn-id: r13816
2004-05-09 14:27:53 +00:00
Max Horn
39765b0d19 Remove explicit OSystem parameter from StackLock constructor; added OSystem::displayMessageOnOSD (not yet used; default implementation provided)
svn-id: r13413
2004-03-28 20:31:18 +00:00
Max Horn
b29b07fadc Allow multi-line OSD messages; display virtual/real screen resolutions when chaning the scaler or the aspect ratio correction
svn-id: r13309
2004-03-15 19:07:56 +00:00
Max Horn
e8f7214acb Renamed OSystem::set_timer() to setTimerCallback(); more OSystem Doxygen changes
svn-id: r13289
2004-03-15 01:18:47 +00:00
Max Horn
d2ef3ad20c Added an OSD (On Screen Display) to the SDL backend
svn-id: r13248
2004-03-13 14:19:15 +00:00
Max Horn
e063d00418 got rid of _mouseOldState; some minor cleanup
svn-id: r13103
2004-03-01 01:41:22 +00:00
Max Horn
82fec69482 merged OSystem_SDL and OSystem_SDL_Common; split SDL backend into multiple source files
svn-id: r13092
2004-02-29 00:49:40 +00:00
Max Horn
79c488cb6c fix mouse redraw issue when toggling fullscreen mode (visible if one mode is 555 and the other 565)
svn-id: r13088
2004-02-28 13:00:19 +00:00
Max Horn
c6752cccf5 renamed more OSystem methods to follow our naming scheme; renamed NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend
svn-id: r13087
2004-02-28 12:58:13 +00:00
Max Horn
2671ca515e fix a recursive lock bug related to update_screen() (shouldn't have caused problems on most systems, but still was a bug); rewrite the code which switches the scaler mode to be slightly more efficient
svn-id: r13070
2004-02-27 19:35:51 +00:00
James Brown
c086822ba9 Revert fixme out.. as it's all fixed. :o)
svn-id: r13054
2004-02-25 14:31:31 +00:00