26 Commits

Author SHA1 Message Date
Max Horn
7760077cf5 Merging the gsoc2010-opengl branch
svn-id: r54518
2010-11-28 14:56:31 +00:00
Max Horn
44393b2dc8 ALL: Add code to help stop people from accidentally using "bad" APIs
A new header file common/forbidden.h is included by scummsys.h and it
re-#defines numerous symbols like fopen(), fread(), system(), etc. with
garbage, in order to provoke compile errors in any code using them.

If a .cpp file really *must* use any of these (e.g. because it is a
backend file), then these redefinitions can be disabled by #defining
FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever
this is done, an explanatory comment should be added.

Note that this system cannot catch all "bad" usages (notably the Lua
code in the sword25 engine), as it can only work if scummsys.h is
included.

svn-id: r53961
2010-10-30 21:27:42 +00:00
John Willis
4e936522ee GPH: Cleanup Readme and support scripts.
GP2X: Cleanup Readme.

SDL: Change a few backend defines to GPH_DEVICE from the device name (blocking main and loadGFXMode so they can be written elsewhere).

svn-id: r53639
2010-10-20 13:00:58 +00:00
Johannes Schickel
75e8452b6e OPENGL: Merged from trunk, from rev 52105 to 53396.
This includes an rather hacky attempt to merge all the recent gp2x backend
changes into the branch. I suppose the gp2x backend and probably all new
backends, i.e. gph, dingux etc., might not compile anymore.

Since I have no way of testing those it would be nice if porters could look
into getting those up to speed in this branch.

svn-id: r53399
2010-10-13 03:57:44 +00:00
John Willis
2e1b4278e2 SDL: Add masks to the SDL backend to support the OpenPandora backend.
svn-id: r52599
2010-09-06 17:28:17 +00:00
Alejandro Marzini
0df6bdde1c AMIGAOS: Fix build.
svn-id: r52306
2010-08-23 19:40:18 +00:00
Eugene Sandulenko
26dc4c2425 DINGOO: new port. Patch #3039277
svn-id: r52210
2010-08-19 12:43:37 +00:00
Alejandro Marzini
f9c3a4547c Cleanup and documentation.
svn-id: r50589
2010-07-02 06:44:42 +00:00
Johannes Schickel
09b4f7cbed Define WIN32_LEAN_AND_MEAN before including windows.h.
This will cause our code to include less functionality, but might on the other hand fasten up the compilation.

svn-id: r50346
2010-06-26 21:55:52 +00:00
Alejandro Marzini
307d7aeb4f Added a init function to OSystem_SDL for early backend setup, and so allowing better sub classing.
svn-id: r50224
2010-06-24 17:37:09 +00:00
Alejandro Marzini
1811e86648 Created posix port subclassed from sdl backend. Removed unnecessary #include in win32.cpp
svn-id: r50173
2010-06-22 23:55:25 +00:00
Alejandro Marzini
9d41a45976 Created win32 port from sdl backend.
svn-id: r50103
2010-06-20 22:45:09 +00:00
Alejandro Marzini
d2f9355aee Improved ModularBackend and OSystem_SDL destructors.
svn-id: r49679
2010-06-15 05:15:34 +00:00
Eugene Sandulenko
01c55efc95 SDL: Split quit() method into deinit() so error codes could be returned.
svn-id: r49131
2010-05-21 18:22:11 +00:00
Johannes Schickel
7556fddeb9 Remove (now) obsolete HACK for WIN32.
svn-id: r45832
2009-11-11 14:27:22 +00:00
Johannes Schickel
f23784b422 Add an ugly HACK to fix bug #2895217 "MSVC compilation broken with r47595".
svn-id: r45815
2009-11-10 21:14:27 +00:00
Johannes Schickel
7b7763021b Fix for bug #2895217 "MSVC compilation broken with r47595".
svn-id: r45814
2009-11-10 20:42:46 +00:00
Lars Persson
65136b9acf Move Symbian main implementation from main.cpp to SymbianOS.cpp
svn-id: r45802
2009-11-10 08:01:48 +00:00
Max Horn
d6d2c5d7b8 SDL: Separate Symbian specific main() from standard SDL main() -- to be moved into a separate file
svn-id: r45795
2009-11-09 23:52:50 +00:00
Eugene Sandulenko
70b7ebb339 Patch #2826508: "Motorola A1200/E6/A1600 (motoezx) patch"
svn-id: r43636
2009-08-22 12:35:49 +00:00
John Willis
929ef3e4a8 Initial import of the GP2XWiz backend (based on the GP2X and SDL backends). Includes configure changes and one #ifdef to SDL backend. Also updates NEWS.
svn-id: r41156
2009-06-04 08:30:31 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Lars Persson
c6905d56a9 Don't include windows.h for Symbian emulator builds
svn-id: r29119
2007-09-28 20:41:22 +00:00
Torbjörn Andersson
c915fb8807 Fixed compilation.
svn-id: r28532
2007-08-11 19:34:46 +00:00
Filippos Karapetis
156fa8e84f windows.h needs to be included before sdl.h, to avoid redefinition of ARRAYSIZE
svn-id: r28522
2007-08-11 11:31:31 +00:00
Max Horn
9402981517 SDL backend cleanup (minor)
svn-id: r28520
2007-08-11 08:44:43 +00:00