Commit Graph

215 Commits

Author SHA1 Message Date
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
Max Horn
d3a954861d patch #626629: add overlay support to SDL_g+OpenGL backend (still buggy!)
svn-id: r5226
2002-10-22 00:58:48 +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
James Brown
628eea3de4 Patch 625904: CD Looping
svn-id: r5199
2002-10-20 13:17:43 +00:00
Max Horn
b1766c28b2 patch #620627: mouse wheel support for NewGui
svn-id: r5169
2002-10-16 20:32:12 +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
Travis Howell
c10698a614 Remove workaround for dsound problem in sdl on win32, since it is fixed by sdl 1.2.5.
svn-id: r5108
2002-10-08 07:36:25 +00:00
Max Horn
d921d06d39 played a bit with the launcher - it now is already somewhat usable <g>
svn-id: r5047
2002-09-30 00:55:47 +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
6024c80f14 added (currently completly useless) launcher dialog
svn-id: r5024
2002-09-27 23:27:14 +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
e0f11edf45 quit should not exit(1) but rather exit(0) (mabye we should add a paramter 'bool success' to it that flags whether this is a normal exit or one with an error?)
svn-id: r4979
2002-09-20 00:12:58 +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
Max Horn
bb57506d48 Added overlay to OSystem interface; implemented overlay in SDL backend (all other backends, including SDL_gl, still need to implement this!); changed NewGUI to make use of the overlay; added Cmd-Q as a shortcut for Quit on MacOS X
svn-id: r4971
2002-09-19 16:06:51 +00:00
Michael Pearce
0fbefc72aa Applied roever's screen effects patch (#602595) and fixed LethalWP's Makefile ;)
svn-id: r4909
2002-09-09 05:56:11 +00:00
Max Horn
523d8e64c0 rewrote config class; cleanup; code restructuring
svn-id: r4903
2002-09-08 01:08:12 +00:00
Max Horn
f3b4f38892 SDL_gl and normal SDL backend now share a common base class
svn-id: r4813
2002-08-24 10:41:32 +00:00
Max Horn
39654fa719 don't use OS X rules by default for SDL backend; use cp instead of ln to create the local build.rules file
svn-id: r4797
2002-08-21 17:43:00 +00:00
Max Horn
ee3ea28e6c first go at modularizing the build system
svn-id: r4796
2002-08-21 17:35:46 +00:00
Max Horn
7aac293726 fixed the 'intelligent' GCC build rules; added .cvsignore files
svn-id: r4790
2002-08-21 16:28:19 +00:00
Max Horn
ce46866403 Initial revision
svn-id: r4785
2002-08-21 16:07:07 +00:00