Travis Howell
e11c741e82
Drop OpenGL backend, since it has no maintainer and is too buggy.
...
svn-id: r11569
2003-12-11 05:32:27 +00:00
Paweł Kołodziejski
13c7acee9d
cleanup whitespaces
...
svn-id: r11220
2003-11-08 22:57:42 +00:00
Max Horn
74b496a062
added PROP_GET_GFX_MODE; removed PROP_SHOW_DEFAULT_CURSOR
...
svn-id: r11132
2003-11-04 20:46:20 +00:00
Max Horn
235047d526
made SDL backend use config manager
...
svn-id: r11028
2003-11-01 19:12:11 +00:00
Travis Howell
90d35c0f13
Add old change from SDL backends, give error if video mode isn't support.
...
svn-id: r10712
2003-10-10 10:03:02 +00:00
Jonathan Gray
0de202bfb4
make gcc 2.95 -Wshadow happy (yes fingolfin its a broken compiler :)
...
svn-id: r10701
2003-10-09 14:05:09 +00:00
Jamieson Christian
98a16da50b
For those us who have to hit Shift to get to +
...
svn-id: r10624
2003-10-06 00:09:26 +00:00
Max Horn
2e27e74fb4
implemented new 'nice' scaler hotkeys
...
svn-id: r10613
2003-10-05 15:04:25 +00:00
Max Horn
16e4897531
cleanup
...
svn-id: r10612
2003-10-05 14:41:30 +00:00
Travis Howell
661d583303
Ooops
...
svn-id: r10598
2003-10-05 00:50:21 +00:00
Travis Howell
03200d8327
Remove unneeded case.
...
Disable code that causes crash when using opengl from command line for now.
svn-id: r10597
2003-10-05 00:46:46 +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
4a84b356f8
revert the 'reverse Y axis' hack
...
svn-id: r10594
2003-10-04 23:49:04 +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
Max Horn
bebaf0e0fc
You have been a thorn in my side for far too long Avatar^H^H^H^H^H^H bad code
...
svn-id: r10554
2003-10-03 00:30:56 +00:00
Jonathan Gray
eecdf67c63
disable joystick input by default either command line or config file need to be used to enable it now, ability to choose joystick number to use also added
...
svn-id: r10518
2003-10-01 10:47:19 +00:00
Torbjörn Andersson
2d3e970496
Slightly more sensible hotkeys for the scalers. Hq2x is now number 8, right
...
after AdvMame2x, and 9 and 0 are AdvMame3x and Hq3x respectively.
I agree with Fingolfin that we'll need a better way of handling this in the
future, though.
svn-id: r10461
2003-09-28 14:27:08 +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
24d74274cf
proposal for revised scaler keyboard shortcuts
...
svn-id: r10442
2003-09-27 21:41:10 +00:00
Max Horn
7d2fff0012
added hq2x scaler
...
svn-id: r10439
2003-09-27 21:20:00 +00:00
Max Horn
49d2a22b42
OSystem changes: removed create_thread() method (not needed anymore; 'pure' threads aren't very portable anyway, better we only use timers); introduced OSystem::TimerProc type
...
svn-id: r10430
2003-09-27 16:54:11 +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
d9b0a79390
fixed some pointer cast warnings on systems with 64 bit pointers (like AMD64)
...
svn-id: r10315
2003-09-19 19:11:33 +00:00
Max Horn
ad09725b3e
evil fix for #bug 801293 (ALL: Ctrl+alt+b opengl switch) and some cleanup
...
svn-id: r10248
2003-09-14 12:52:38 +00:00
Max Horn
75d4f45a8d
moved set_mouse_pos around just to make clear it's not part of the OSystem API anymore
...
svn-id: r10187
2003-09-11 23:53:38 +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
ac72d0cec7
removed some superfluous newlines
...
svn-id: r10086
2003-09-08 11:54:13 +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
97c3150924
while this fixed a problem with sdl_gl on OS X, it causes annoying problems with fullscreen mode with the regular SDL backend on OS X -> disabling it (plus I couldn't reproduce this segfault with the GL backend anymore, too)
...
svn-id: r9468
2003-08-04 22:25:51 +00:00
Max Horn
679e818b0b
oops, accidentally commited this one
...
svn-id: r9465
2003-08-04 16:50:26 +00:00
Max Horn
00861f8841
fix for bug #781903 (ALL: jerky cursor movement regression)
...
svn-id: r9446
2003-08-03 23:34:04 +00:00
Max Horn
103112dd3d
removed OSystem::set_mouse_pos (I hope I didn't break any backends, but if I did it should be trivial to get them working again)
...
svn-id: r9391
2003-08-02 00:36:38 +00:00
Max Horn
0df319e952
#include cleanup (explicityl specify the location for headers from common/, so that we at some point can get rid of -Icommon; exception is made for stdafx.h, since a) we might want to rename it and b) might want to move it to the top level)
...
svn-id: r9359
2003-08-01 12:21:04 +00:00
Max Horn
1b52e9f19c
added new header file backends/intern.h; removed some stuff from common/system.h which is either only of interest to backends or code instantiating a backend (->backends/intern.h); also removed fmopl specific enums (->sound/fmopl.h)
...
svn-id: r9327
2003-07-31 12:33:33 +00:00
Max Horn
dad1586daf
reset some CD related vars when AudioCD is opened
...
svn-id: r9144
2003-07-23 09:41:21 +00:00
Travis Howell
fc5080bfb2
Ooops that should not have been commmited
...
svn-id: r9142
2003-07-23 05:18:47 +00:00
Travis Howell
13dae9b394
fm towns cd audio fix from Hibernatus
...
svn-id: r9141
2003-07-23 05:17:21 +00:00
Max Horn
7665890d97
forgot to commit this one
...
svn-id: r9133
2003-07-22 20:38:01 +00:00
Max Horn
73e7afaf18
adjusted to play_cdrom parameter name change in common/system.h
...
svn-id: r9132
2003-07-22 20:36:43 +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
Travis Howell
a4b5891dd1
Use automatic dirty rect code for simon games for now to reduce CPU usage
...
svn-id: r9093
2003-07-20 15:31:47 +00:00
Max Horn
a0545a22ae
whitespace
...
svn-id: r9089
2003-07-20 01:39:08 +00:00
Travis Howell
6480a00855
aspect ratio correction
...
svn-id: r8897
2003-07-10 10:24:06 +00:00
Max Horn
ce9d154957
fixed stack lock at startup
...
svn-id: r8779
2003-07-05 15:28:28 +00:00
Max Horn
4611b12c0a
updated backends to use type MutexRef
...
svn-id: r8776
2003-07-05 15:17:46 +00:00
Travis Howell
39abb7cf0a
Add more OpenGL fixes, patch #762815
...
svn-id: r8775
2003-07-05 13:41:14 +00:00
Max Horn
30d985afb9
const correctness
...
svn-id: r8725
2003-07-03 21:45:04 +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
Torbjörn Andersson
cd04361fb7
Removed the calls to SDL_SetGamma(). No one could understand what they were
...
doing there in the first place when it was discussed yesterday, and they
screw up the colours for me. (Possibly because I have the gamma correction
set even higher by default, so this attempt to brighten the image actually
made it *darker* for me.)
svn-id: r8720
2003-07-03 06:58:08 +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
7c8565fa65
Add OpenGL fixes, patch #762815
...
svn-id: r8672
2003-06-30 02:38:56 +00:00
Paweł Kołodziejski
87b5f750e7
fixed warnings
...
svn-id: r8622
2003-06-22 15:00:51 +00:00
Torbjörn Andersson
160c4f9104
Fixed the last (?) glitches around the mouse cursor [*] in aspect-ratio
...
correction mode by making sure that dirty rects always start on a line
that won't have its colours changed by the stretching function. This was
probably only noticeable when using the 1x scaler.
[*] Actually, the glitches weren't specific to the mouse cursor, but it was
useful for triggering them.
svn-id: r8621
2003-06-22 14:59:21 +00:00
Max Horn
4604b2600e
use float instead of double
...
svn-id: r8617
2003-06-22 14:39:55 +00:00
Travis Howell
85d926fa66
Ooops
...
svn-id: r8615
2003-06-22 14:34:30 +00:00
Travis Howell
a700f90a5f
Revert poll_event change
...
svn-id: r8614
2003-06-22 14:31:17 +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
Travis Howell
2a31d107c9
Aspect ratio works with all sclaers in opengl backend
...
svn-id: r8607
2003-06-22 12:30:58 +00:00
Max Horn
11ff7fe9a3
Patch #757827 : Aspect-ratio correction
...
svn-id: r8605
2003-06-22 11:55:40 +00:00
Max Horn
2b3ad36791
typo
...
svn-id: r8574
2003-06-20 23:21:06 +00:00
Max Horn
cafe61b768
uhm - dunno how that slipped in =)
...
svn-id: r8570
2003-06-20 11:05:57 +00:00
Max Horn
3014adf175
some changes for the 320x256 code - the new code *might* work (can't test since it's not supported here), while the old code for it simply was bogus :-)
...
svn-id: r8569
2003-06-20 10:59:22 +00:00
Max Horn
2a1b3d633d
oops
...
svn-id: r8567
2003-06-20 01:12:34 +00:00
Max Horn
5cd8bc2942
cleanup
...
svn-id: r8566
2003-06-20 00:48:17 +00:00
Max Horn
7403492aea
fixed non-bilinear mode (no black line in that anymore; fixing the bilinear case will be challenging, at the least...); some cleanup
...
svn-id: r8561
2003-06-19 16:33:46 +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
a0028d51d1
OpenGL working right now
...
svn-id: r8537
2003-06-17 17:34:52 +00:00
Travis Howell
d5d61a5e05
Missed one
...
svn-id: r8536
2003-06-17 16:06:17 +00:00
Travis Howell
a09e7a5615
Update backend with recent changes, hope this is right.
...
svn-id: r8535
2003-06-17 16:03:12 +00:00
Max Horn
c7b19406cd
temporary & nasty workaround for crash-on-exit in OS X + SDL/GL backend
...
svn-id: r8534
2003-06-17 15:33:17 +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
b8b80805c1
fixed 'quit' entry in help for Mac OS X; disabled Alt-X/Ctrl-Z on OS X (Cmd-Q is the one and only true way to quit here :-)
...
svn-id: r8505
2003-06-15 11:32:14 +00:00
Max Horn
82af035f91
added clear_sound_proc method to backend API (this requires all backends to be modified, but can't help it)
...
svn-id: r8409
2003-06-09 01:19:25 +00:00
Torbjörn Andersson
8ab745de66
Finally fixed a slight bug in the CoMI cannon behaviour.
...
svn-id: r8401
2003-06-08 14:55:21 +00:00
Max Horn
be9e6e85db
added quit event
...
svn-id: r8398
2003-06-08 12:11:14 +00:00
Max Horn
7411034215
make code use our coding conventions
...
svn-id: r8340
2003-06-05 23:56:32 +00:00
Bertrand Augereau
d510447d05
optimisation to blit rects in one shot when width=pitch=screenwidth
...
svn-id: r8317
2003-06-05 07:52:50 +00:00
Max Horn
e08d4f072e
more OSystem docs & cleanup
...
svn-id: r8118
2003-05-29 22:34:35 +00:00
Max Horn
f0a9f4fb2c
added some doxygen comments to common/system.h; cleaned up the OSystem interface a bit
...
svn-id: r8116
2003-05-29 21:45:26 +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
9b70fee5f3
changed scaler proc signature so that srcPtr is const (this can help optimizer by simplifying aliasing detection; thanks to Bertrand Augereau for pointing this out)
...
svn-id: r7939
2003-05-25 12:08:01 +00:00
Max Horn
24005adfd0
pedantic fixes
...
svn-id: r7789
2003-05-21 16:59:51 +00:00
Max Horn
2e8ff540cf
init _paletteDirtyStart/_paletteDirtyEnd to 0
...
svn-id: r7716
2003-05-20 10:49:05 +00:00
Max Horn
e91bf4df2f
fixed my wrong fix for move_screen
...
svn-id: r7623
2003-05-18 02:40:54 +00:00
Oliver Kiehl
0a8cdad264
make gcc 3.3 happy
...
svn-id: r7621
2003-05-17 23:48:32 +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
cb8d07fd62
Patch #736861 : SDL/GL: AdvMame3x
...
svn-id: r7484
2003-05-13 15:58:27 +00:00
Max Horn
37724d9297
Patch #735294 : AdvMame3x scaler
...
svn-id: r7409
2003-05-09 22:44:16 +00:00
Jonathan Gray
9f9af13a01
fix another leak
...
svn-id: r7245
2003-05-01 12:42:46 +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
7093694781
free movement may not be necessary for now, but doing it is trivial, so why not. Still this code is horribly inefficient :-/.
...
svn-id: r7229
2003-04-30 18:34:29 +00:00
Max Horn
f0dceacf4b
avoid unneccesary blits
...
svn-id: r7228
2003-04-30 18:07:17 +00:00