Commit graph

49 commits

Author SHA1 Message Date
Max Horn
2671ca515e fix a recursive lock bug related to update_screen() (shouldn't have caused problems on most systems, but still was a bug); rewrite the code which switches the scaler mode to be slightly more efficient
svn-id: r13070
2004-02-27 19:35:51 +00:00
Max Horn
5e163a51a4 fix fullscreen switch code 'properly' (sorry for missing this one, folks). Since we don't have the OpenGL variant anymore, we could now merge back the two parts of the SDL backend - and maybe split them into multiple files in a different way (events, graphics, audio, misc ?)
svn-id: r13045
2004-02-25 09:53:36 +00:00
Max Horn
d158280425 the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again
svn-id: r13036
2004-02-24 22:39:42 +00:00
Nicolas Bacca
14126cde00 add_dirty_rect turned to virtual method for new CE backend
svn-id: r12460
2004-01-17 23:42:15 +00:00
Max Horn
033ff78ae9 updated copyright notice
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
235047d526 made SDL backend use config manager
svn-id: r11028
2003-11-01 19:12:11 +00:00
Max Horn
16e4897531 cleanup
svn-id: r10612
2003-10-05 14:41:30 +00:00
Max Horn
4a84b356f8 revert the 'reverse Y axis' hack
svn-id: r10594
2003-10-04 23:49:04 +00:00
Max Horn
afd9119d37 small remark
svn-id: r10579
2003-10-04 00:12:30 +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
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
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
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
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
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
4611b12c0a updated backends to use type MutexRef
svn-id: r8776
2003-07-05 15:17:46 +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
Max Horn
11ff7fe9a3 Patch #757827: Aspect-ratio correction
svn-id: r8605
2003-06-22 11:55:40 +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
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
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
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
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
5c93732d60 cleanup; added comment
svn-id: r7119
2003-04-25 20:03:00 +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
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
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
0ef7d52448 fixed mouse cursor code to cope with CMI
svn-id: r6125
2002-12-25 12:53:47 +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
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
e8f3f17067 renamed get_320x200_image() to get_screen_image(); cleanup
svn-id: r5145
2002-10-14 11:02:27 +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
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
f3b4f38892 SDL_gl and normal SDL backend now share a common base class
svn-id: r4813
2002-08-24 10:41:32 +00:00