54 Commits

Author SHA1 Message Date
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
Max Horn
6a8bd23d02 there used to be a black border at the top/left side with the 1x scaler: fixed!
svn-id: r8065
2003-05-28 21:57:22 +00:00
Max Horn
af8cb44727 ouch
svn-id: r7511
2003-05-14 19:47:57 +00:00
Max Horn
fae5ab677c fixed bug where SDL_CreateMutex was being called before SDL_Init; restructured code a little
svn-id: r7510
2003-05-14 19:44:41 +00:00
Max Horn
37724d9297 Patch #735294: AdvMame3x scaler
svn-id: r7409
2003-05-09 22:44:16 +00:00
Max Horn
feab6f904f moved screen mutex from smush into SDL backend (other backends have to make sure they are thread safe by themselves)
svn-id: r7230
2003-04-30 19:11:33 +00:00
Max Horn
f0dceacf4b avoid unneccesary blits
svn-id: r7228
2003-04-30 18:07:17 +00:00
Max Horn
5c93732d60 cleanup; added comment
svn-id: r7119
2003-04-25 20:03:00 +00:00
Paweł Kołodziejski
e1d591921f it omit one blit for scaler Normal1X in SDL backend
svn-id: r6831
2003-03-18 13:31:37 +00:00
Paweł Kołodziejski
aa3766018f updated copyrights headers
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
a8c3057875 and more cleanup ....
svn-id: r6719
2003-03-06 18:30:44 +00:00
Max Horn
086a89f365 Patch #691064: dot matrix scaler
svn-id: r6663
2003-03-02 16:36:52 +00:00
Jonathan Gray
c08d736d1d add new tv scanlines graphics scaler from Gregory Montoir, use -g tv2x to try it
svn-id: r6462
2003-01-15 02:11:37 +00:00
James Brown
0b46f85b7e Early init of the scaler - to prevent ComI trying to use a huge window by default.
This may require porters to make a small backend change, not to reinit a scaler on hotswap if the display has not been init_size'ed.

svn-id: r6449
2003-01-13 18:59:53 +00:00
Max Horn
a4a4f043bf fix for the black rect bug in COMI (thanks to Erik)... guess is that the checksum algo fails to detect the dirty regions. Why is it here at all, anyway? BBrox says it might be needed for Simon. So somebody should check that
svn-id: r6428
2003-01-12 14:18:05 +00:00
Max Horn
80a962dd02 cleanup
svn-id: r5936
2002-12-13 17:44:04 +00:00
Max Horn
57187dbdcd more code unification
svn-id: r5935
2002-12-13 17:27:28 +00:00
Max Horn
1f4f7a51b1 unified common code
svn-id: r5934
2002-12-13 17:21:23 +00:00
Max Horn
4bf96d1c8b changed OSystem to allow RBG<->16bit color conversion to be done in the backend; after all, the backend 'knows' best what format the overlay uses. Default implementations of RBGToColor and colorToRBG assume 565 mode, backends other than SDL may want to provide alternate implementations (SDL backend already does the right thing for non-565 modes)
svn-id: r5931
2002-12-13 16:15:58 +00:00
Max Horn
2768191288 workaround for fullscreen toggle on OS X
svn-id: r5879
2002-12-08 14:08:51 +00:00
Max Horn
d679af3ec5 fixed bug #621244 (GUI disappeared when screen mode was changed
svn-id: r5697
2002-11-23 00:13:52 +00:00
Max Horn
aae641c6cf properly initialize everything -> works w/o our custom new/delete now!
svn-id: r5531
2002-11-13 14:38:49 +00:00
Max Horn
1c999792f9 fixed stupid bug by me, again (see also 9th of May)
svn-id: r5225
2002-10-21 22:25:52 +00:00
Max Horn
e8f3f17067 renamed get_320x200_image() to get_screen_image(); cleanup
svn-id: r5145
2002-10-14 11:02:27 +00:00
Max Horn
977aea241e fixed buglet during shake mode
svn-id: r5040
2002-09-29 18:19:57 +00:00
Max Horn
9dc5fe2a1d cleaned up various variable names in the SDL backend & NewGui; also fixed a small buglet that could cause garbage to appear behind the mouse cursor when closing NewGui while inside a game
svn-id: r5029
2002-09-28 16:19:28 +00:00
Max Horn
29f8c3af95 made init_size in the SDL backend reentrant
svn-id: r5022
2002-09-27 13:05:54 +00:00
Max Horn
536692556b fixed cursor trail
svn-id: r5007
2002-09-22 16:12:37 +00:00
Max Horn
f644bea112 improved the text display in a newgui a bit: make the font proportiona; implemented text alignment (left/right/center); alpha blending now not anymore at 50% but at 66%; moved some #defines to util.h
svn-id: r4972
2002-09-19 17:03:24 +00:00