222 Commits

Author SHA1 Message Date
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
Max Horn
5c93732d60 cleanup; added comment
svn-id: r7119
2003-04-25 20:03:00 +00:00
Travis Howell
1d1e111214 Add patch #723308 - SDL/GL with SDL scalers
svn-id: r7015
2003-04-18 01:19:30 +00:00
Travis Howell
252928f87a Add patch #721194 - SDL/GL: hotswap_gfx_mode (win32 and MacOS)
svn-id: r7012
2003-04-15 01:32:16 +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
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
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
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
0029c46754 more joystick stuff based on patch by ge0rg, also added defines for axis settings and mappings for common keys, these defines will hopefully be removed and replaced with config file options at some point
svn-id: r6563
2003-01-28 06:06:47 +00:00
Jonathan Gray
c1930e0ff5 declare event of type mouse motion on joystick axis movement
svn-id: r6535
2003-01-22 13:15:03 +00:00
Jonathan Gray
473cbb8437 start of joystick support, just selects first joystick for now and only maps first two buttons to first two mouse buttons. Will add more button mappings and a -j options to specify joystick in future
svn-id: r6528
2003-01-20 16:29:26 +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
67cd9bba2c only warp mouse if it actually moved - this is not quite perfect, either, but at least now it works again on OS X
svn-id: r6373
2003-01-09 18:39:45 +00:00
James Brown
f3f237e647 Remove hack - now the cannon scene works in fullscreen linux. Someone tell me how it goes for Windows
svn-id: r6372
2003-01-09 18:02:17 +00:00
Max Horn
1934269872 yet another warp mouse change, now it works on OS X, but will it work on Linux/Windows?
svn-id: r6370
2003-01-09 16:57:09 +00:00
James Brown
819a96d05b Patch 664895: Cannon fixes. Porters, this requires a new OSystem interface function
svn-id: r6365
2003-01-09 08:07:13 +00:00
Max Horn
4ccd134b37 valid C++
svn-id: r6226
2002-12-28 12:33:16 +00:00
James Brown
92c8e4ef1e Fix NewGui for higher resolutions (eg, CMI)
svn-id: r6216
2002-12-28 04:51:34 +00:00
Max Horn
f1808d20ac seems cursor width/height can occur
svn-id: r6146
2002-12-25 21:02:21 +00:00
Max Horn
0ef7d52448 fixed mouse cursor code to cope with CMI
svn-id: r6125
2002-12-25 12:53:47 +00:00
Max Horn
1943be0ffd small mod to allow smooth scrolling to work with SDL backend
svn-id: r6039
2002-12-21 11:58:46 +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
0b82e20b00 improved keyboard input behaviour in SDL backend: make use of the unicode feature in SDL. This way, Shift-1 on my german keyboard generates ! not 1 (on an US keyboard it'll be a different symbol). Should fix bug #600258 and #551447
svn-id: r5692
2002-11-22 18:46:18 +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
Travis Howell
c9774f88d3 Add more OpenGL GFX modes, patch #630753
svn-id: r5351
2002-10-30 02:31:49 +00:00
Travis Howell
4d1a90a44c Add OpenGL GFX mode switch, patch #630448
svn-id: r5348
2002-10-29 14:57:32 +00:00
Travis Howell
99c8889bba More OpenGL updates, patch #628356
Make sure simon debug is enabled by default

svn-id: r5310
2002-10-25 14:56:58 +00:00
Travis Howell
2cbfd74e2d Add more OpenGL updates, patch #628356
svn-id: r5307
2002-10-25 03:13:56 +00:00
Travis Howell
968c1c5e79 Add more OpenGL updates, patch #627510
svn-id: r5301
2002-10-24 11:01:19 +00:00
James Brown
134468fd61 Patch 627178: OpenGL updates
svn-id: r5279
2002-10-23 08:52:20 +00:00