Commit Graph

215 Commits

Author SHA1 Message Date
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
31e434dcf1 Fix a`ll engines. They work, though current fix is just temporary.
There are plans to add some brains to GameDetector class, which will let us
avoid passing detector to init() method.

svn-id: r15873
2004-11-24 00:14:21 +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
James Brown
2ae3166f2d Add new clearScreen OSystem call. Currently only implemented in SDL backend. This call is currently only used for clearing the launcher screen to remove garbage from the main screen before reentering.
svn-id: r15799
2004-11-13 04:33:33 +00:00
Max Horn
bb462f64e0 Renamed _scaler_proc -> _scalerProc; cleaned up _scalerType handling
svn-id: r15563
2004-10-15 22:28:12 +00:00
Torbjörn Andersson
6a1c315fdf Don't let undraw_mouse() terminate with the surface still locked. Now I can
finally quit Broken Sword II again, without ScummVM crashing.

svn-id: r15536
2004-10-13 06:36:29 +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
Max Horn
4bd05071e5 Got rid of OSystem::move_screen
svn-id: r14882
2004-09-04 01:31:04 +00:00
Max Horn
76bfd1f929 Allow Alt-Enter to toggle fullscreen mode, just like Alt-Return, matching our README (see also bug #1001126)
svn-id: r14382
2004-07-31 11:32:25 +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
Jonathan Gray
0237685473 disable alt-x and ctrl-z quit keys in favour of ctrl-q on non Mac OS X unices (including Linux) for consistency with other applications
svn-id: r13989
2004-06-21 02:09:50 +00:00
Nicolas Bacca
4fdf5675b8 Make a few functions GFX functions virtual for CE backend
svn-id: r13817
2004-05-09 14:30:29 +00:00
Nicolas Bacca
5d81e3b785 Tweak SDL init for WinCE backend
svn-id: r13816
2004-05-09 14:27:53 +00:00
Max Horn
88fdb5a627 Removed default value for keycolor in the OSystem implementations
svn-id: r13796
2004-05-06 09:20:21 +00:00
Eugene Sandulenko
b7e62e4b61 Extend setMouseCursor with additional keycolor parameter. Lets saga use 255
as white color. Made this function more safe by copying cursor data to
newly created buffer.

svn-id: r13777
2004-05-05 02:32:46 +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
14378cb56e Renamed more OSystem methods
svn-id: r13410
2004-03-28 16:30:50 +00:00
Max Horn
a9789acfc6 Moved Surface/Font code into new 'graphics' module
svn-id: r13357
2004-03-21 21:20:25 +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
e46ba2f29f Added OSystem::getDefaultGraphicsMode(); renamed OSystem::get_height() and get_width() to getHeight and getWidth(); augmented some doxygen comments in common/system.h
svn-id: r13284
2004-03-15 00:45:45 +00:00
Max Horn
020d0702d1 Allow changing the scaler via keypad, too (FR #821415)
svn-id: r13251
2004-03-13 14:59:43 +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
7f7f647e3c cleanup
svn-id: r13231
2004-03-12 18:23:15 +00:00
Max Horn
0603c3a11f Fix for bug #907280: Mouse glitches and crashes (Regression)
svn-id: r13123
2004-03-01 11:20:32 +00:00
Max Horn
0919878408 fixed dep file loading
svn-id: r13122
2004-03-01 11:18:50 +00:00
Max Horn
3098149b52 removed obsolete membe
svn-id: r13104
2004-03-01 01:44:36 +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
80fd4bd4f0 this might help Makefile.noconf (did I mention that i want to get rid of it?)
svn-id: r13097
2004-02-29 11:19:02 +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
Max Horn
e9584c64f3 Build SDL backend via a module.mk file, too
svn-id: r13052
2004-02-25 11:41:55 +00:00
Max Horn
5e163a51a4 fix fullscreen switch code 'properly' (sorry for missing this one, folks). Since we don't have the OpenGL variant anymore, we could now merge back the two parts of the SDL backend - and maybe split them into multiple files in a different way (events, graphics, audio, misc ?)
svn-id: r13045
2004-02-25 09:53:36 +00:00
James Brown
70c3d3b66e Fix SDL backend compilation
svn-id: r13042
2004-02-25 06:08:00 +00:00
Travis Howell
a263f2c64a OpenGL backend no longer exists.
svn-id: r13037
2004-02-25 04:23:58 +00:00
Max Horn
d158280425 the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again
svn-id: r13036
2004-02-24 22:39:42 +00:00
Torbjörn Andersson
f5239ada1f Allow the cursor to reach the bottom of the screen when using the keyboard
to control it, and aspect-ratio correction is activated.

svn-id: r13009
2004-02-23 11:35:58 +00:00
Travis Howell
30189c2a20 Valgrind warning fix for Simon engine (From olki)
svn-id: r12772
2004-02-08 05:50:57 +00:00
Max Horn
364277dad0 new auto-dirty-rect checksum algorithm (not so well tested but uses the standard adler32 checksum algorithm)
svn-id: r12760
2004-02-07 12:30:44 +00:00
Jonathan Gray
978ba89095 patch #878551 from Gael Le Mignot, adds key mappings for yopy PDAs, a host option to the configure script for cross compilation and sdl prefix option. Also remove obsolete sdlgl option from configure script and change the --disable-bs options to be --disable-sword to be consistent while I'm here
svn-id: r12572
2004-01-22 04:31:31 +00:00
Nicolas Bacca
14126cde00 add_dirty_rect turned to virtual method for new CE backend
svn-id: r12460
2004-01-17 23:42:15 +00:00
James Brown
e9ca5a1b6d Forgot this :)
svn-id: r12439
2004-01-16 16:57:51 +00:00
Max Horn
033ff78ae9 updated copyright notice
svn-id: r12176
2004-01-06 12:45:34 +00:00
Travis Howell
4884461011 Typo
svn-id: r11684
2003-12-16 12:04:47 +00:00
Travis Howell
6f6675ed8b Add capture mouse option, patch #860831
Uses Ctrl m to toggle, since that is closest to original games.
Disabled by default.

svn-id: r11680
2003-12-16 09:58:21 +00:00
Travis Howell
2ef887fd44 Missed one spot.
svn-id: r11570
2003-12-11 05:36:07 +00:00