85 Commits

Author SHA1 Message Date
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
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
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
73e7afaf18 adjusted to play_cdrom parameter name change in common/system.h
svn-id: r9132
2003-07-22 20:36:43 +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
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
Max Horn
30d985afb9 const correctness
svn-id: r8725
2003-07-03 21:45:04 +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
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
11ff7fe9a3 Patch #757827: Aspect-ratio correction
svn-id: r8605
2003-06-22 11:55:40 +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
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
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
Paweł Kołodziejski
848c566d50 fix for wrong(or rather unset) mouse 0,0 (x,y) position when joystick is plugged
when code handle joystick motion and mapping to mouse motion, it should also
set mouse x,y position

svn-id: r6880
2003-03-29 09:56:51 +00:00
Jonathan Gray
a8212179eb add back removed checks for definitions of mouse scrolling buttons before using them as we don't want to depend on sdl >= 1.2.5
svn-id: r6872
2003-03-27 04:20:17 +00:00
Max Horn
c842edb5bd long standing evil bug (luckily hardly has any effect since almost everything has 2 byte alignment; but if the motion/button structs are ever changed, this would have gone broke)
svn-id: r6870
2003-03-26 22:02:25 +00:00
Max Horn
2f5cc865fe cleanup; added SDL_VIDEOEXPOSE
svn-id: r6869
2003-03-26 21:56:30 +00:00
Max Horn
bce210cc25 fix for numpad fighting (I hope)
svn-id: r6790
2003-03-10 01:37:34 +00:00
Max Horn
b1fe351a51 fixed valgrind warning (though I don't see why this memset should be needed, after reviewing the SDL_OpenAudio source)
svn-id: r6783
2003-03-09 01:23:40 +00:00
Jonathan Gray
361e312a6c change RBG to RGB which follows the argument order and hence makes more sense...
svn-id: r6767
2003-03-08 06:53:32 +00:00