Commit Graph
82 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 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
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
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
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
Max Horn 48fd7e39d5 cleanup
svn-id: r10596
2003-10-05 00:40:25 +00:00
Max Horn a8da69bca5 fixed some broken scaler related checks
svn-id: r10595
2003-10-05 00:28:23 +00:00
Max Horn d4734bd4f2 use namespace Common a bit more; don't zero the RNG in scumm (else the seed gets reset); remove obsolete 256 color blending code
svn-id: r10592
2003-10-04 11:50:21 +00:00
Max Horn afd9119d37 small remark
svn-id: r10579
2003-10-04 00:12:30 +00:00
Jamieson Christian 072bf0f476 Fixed program crash when trying to switch to a
video mode that isn't supported (such as going
to fullscreen under COMI with a 3x scaler and
a video card that doesn't like 1920x1440 LOL).

The program still terminates when this happens,
due to the suboptimal way we make the switch to
another video mode. (By the time we find out
that we can't make the switch, it's too late to
revert back). But at least it doesn't crash.

svn-id: r10449
2003-09-27 23:41:57 +00:00
Max Horn 7d2fff0012 added hq2x scaler
svn-id: r10439
2003-09-27 21:20:00 +00:00
Torbjörn Andersson 308e88965a Made Ctrl-Alt 9 the hotkey for the new hq3x scaler, and moved the scanlines
and dotmatrix ones to Ctrl-Alt C and Ctrl-Alt-D.

(Does anyone else feel that scanlines and dotmatrix should either be
rewritten so that they can be combined with any scaler and aspect ratio
correction, or removed? That's why I moved them off the Ctrl-Alt <digit>
hotkeys.)

svn-id: r10353
2003-09-21 17:05:07 +00:00
Max Horn 74e3448a4c added HQ3x filter
svn-id: r10346
2003-09-21 12:10:32 +00:00
Max Horn 110152ddcf moved declaration of error/warning/debug from engine.h to util.h
svn-id: r10149
2003-09-10 12:15:51 +00:00
Max Horn 6ac86b9760 added EVENT_SCREEN_CHANGED; small tweak to the way quit is handled in NewGui
svn-id: r10047
2003-09-06 20:21:54 +00:00
Travis Howell ab59623930 Add screenshot option for sdl backends, patch #590233
svn-id: r9821
2003-08-22 07:40:40 +00:00
Max Horn 88810dc9bd part of patch #774556: fix for aspect mode + shaking
svn-id: r9102
2003-07-21 00:01:05 +00:00
Torbjörn Andersson 594c1f542d Fixed mishandling of _mode_flags that prevented the Simon games from using
the DF_WANT_RECT_OPTIM flag.

svn-id: r9095
2003-07-20 18:53:27 +00:00
Max Horn ce9d154957 fixed stack lock at startup
svn-id: r8779
2003-07-05 15:28:28 +00:00
Max Horn 6b7e12faed fix for bug #765402: no shaking with 1x scaler
svn-id: r8724
2003-07-03 19:12:24 +00:00
Max Horn e1ca5552dd cleanup; made mutex protection of graphics code a little bit tighter by protecting all of method property(); moved set_palette to OSystem_SDL_Common (it was identical in both normal and GL backend)
svn-id: r8717
2003-07-02 15:08:46 +00:00
Torbjörn Andersson 1f0c925c2b Allow the 3x scaler in fullscreen mode. Since we have aspect ratio
correction now it can look quite different from 1x and 2x.

svn-id: r8674
2003-06-30 14:31:09 +00:00
Travis Howell 5132ca1b2f Add opengl filter option
for opengl backend
Enable poll_event in opengl backend

svn-id: r8612
2003-06-22 14:18:33 +00:00
Max Horn 11ff7fe9a3 Patch #757827: Aspect-ratio correction
svn-id: r8605
2003-06-22 11:55:40 +00:00
Max Horn ed43323597 some fixes for the GL backend - but there are still many things broken, e.g. Ctrl-B only acts on the second (of two) GL textures (which makes the black vertical line stand out even more)
svn-id: r8560
2003-06-19 16:16:35 +00:00
Travis Howell 94e88917da Make OpenGL specific scaler use other keys so all normal scaler canbe made available.
svn-id: r8521
2003-06-17 06:13:57 +00:00
Max Horn 73c7e78f88 fix for the crash in Sky when switching scalers
svn-id: r8067
2003-05-28 22:19:11 +00:00