284 Commits

Author SHA1 Message Date
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
0835583948 Implementation of GFX transactions. May cause some regressions in case I
missed some unusual mode switching. This implementation let us avoid two nasty
hacks in scumm.cpp.

*Now* we could return to OSystem layers.
patch.

svn-id: r16855
2005-02-22 01:29:27 +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
Paweł Kołodziejski
3184c2de34 compatibility for emsvc
svn-id: r16815
2005-02-19 16:04:03 +00:00
Eugene Sandulenko
ae6f40ebb6 Make cursor code more bulletproof
svn-id: r16809
2005-02-19 00:24:48 +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
c6e0d31e76 Added a font manager (work in progress)
svn-id: r16460
2005-01-06 21:15:52 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
92a43e14a0 silly me, shouldn't test a variable which wasn't even set <sigh>
svn-id: r16385
2004-12-30 14:53:17 +00:00
Max Horn
989ae40402 Swallow ctrl-alt keyup events, too
svn-id: r16384
2004-12-30 14:48:21 +00:00
Max Horn
246f14bb40 set key modifiers for keyup events, too; use SDL_GetModState to determine mod flags, so that the modifier flags get set if e.g. the shift key is pressed alone
svn-id: r16381
2004-12-30 14:11:00 +00:00
Max Horn
4b632e66ae Disable mouse emulation code
svn-id: r16120
2004-12-18 16:38:44 +00:00
Nicolas Bacca
0852a6e218 CE backend needs to overload a few functions - list them with an appropriate comment and hope they'll last more than a few months this time :p
svn-id: r16030
2004-12-11 15:17:47 +00:00
Max Horn
954e16abbf Fix for bug #1074931 (GUI: Starting games in fullscreen doesn't work), avoid one unneccessary redraw
svn-id: r15997
2004-12-06 21:12:52 +00:00
Max Horn
f09293b22c Clean up OSystem::Event
svn-id: r15990
2004-12-05 17:42:20 +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
0f2117cbd0 don't assert if no mouse buffer hasn't been setup
svn-id: r15980
2004-12-03 23:23:06 +00:00
Max Horn
f03ae8addb Paranoia
svn-id: r15973
2004-12-03 10:36:30 +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
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