Commit Graph
5295 Commits
Author SHA1 Message Date
Max Horn 6ea76cd913 SDL: Fix SDL plugin provider code (used e.g. by Dingux port)
svn-id: r53968
2010-10-30 23:53:30 +00:00
Max Horn 1425013c4b GPH: Enable use of forbidden symbols
svn-id: r53964
2010-10-30 22:43:25 +00:00
Max Horn 19c3196c1c LINUXMOTO: Enable use of forbidden symbols
svn-id: r53963
2010-10-30 21:49:46 +00:00
Max Horn 768038be11 GP2x: Enable use of forbidden symbols
svn-id: r53962
2010-10-30 21:49:20 +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
Yotam Barnoy 547e028b93 PSP: Improved image viewer movement
Before the limit was arbitrary. Now we check the proper location on screen and move in increments relative to the size on screen.

svn-id: r53918
2010-10-29 07:55:18 +00:00
Yotam Barnoy 082d9a4465 PSP: corrected png loader to use bit depth rather than palette size
Sometimes we can have an 8bit file for example that has a palette of 16 colors or less, so we need to go by the bit depth rather than inferring the bit depth from the palette size.

svn-id: r53917
2010-10-29 07:08:24 +00:00
Yotam Barnoy 13b6e0d69a PSP: Fixed ImageViewer code to deallocate TimedMessageDialog
Not deallocating it before loading the next image causes fragmentation in memory which eventually prevents big things from being loaded into memory.

svn-id: r53873
2010-10-27 11:09:03 +00:00
Angus Lees a0a9de42e1 ANDROID: Add --disable-timidity to the recommended flags
svn-id: r53809
2010-10-25 08:51:10 +00:00
Angus Lees 3bd60b09c1 ANDROID: Don't trust eglChooseConfig and refilter/sort results manually
It seems some Android versions and devices (eg Droid) don't implement
eglChooseConfig according to spec and the first result isn't the best
choice.  Implement our own filtering / scoring to workaround this.

svn-id: r53808
2010-10-25 08:50:16 +00:00
Angus Lees 7d0598d810 ANDROID: Provide an alternate partial texture update for stride != width
The new one copies into a temp buffer and only does one
glTexSubImage2D.  I'm led to believe that this is faster on some
devices (but slower on others).  Disabled for now, but someone might
want to try both versions on their slow device.

Also manually set glColor before calling DrawTexiOES, following
mention of a bug in a discussion I stumbled across.  DrawTexiOES-use
is disabled for now, so this is a noop.

svn-id: r53803
2010-10-25 07:35:40 +00:00
Angus Lees 2bf64b1050 ANDROID: Force extra screen update when updating overlay.
This appears to work around a blank screen bug Nexus1.  I never
tracked it down, but as far as I can tell it is triggered by multiple
overlapping updates before flushing the texture to screen.  This
condition only happens in the overlay atm so an extra redraw isn't the
end of the world.

(Also remove an unused _full_screen_dirty property)

svn-id: r53801
2010-10-25 07:27:05 +00:00
Martin Kiewitz 27ee12e6a5 SDL/win32: fix lf, thx msvc
svn-id: r53768
2010-10-24 19:04:35 +00:00
Martin Kiewitz c9c9eafbbb SDL/w32: add ability to hide console
feature is currently commented out - waiting till discussion has ended

svn-id: r53767
2010-10-24 18:34:08 +00:00
Yotam Barnoy 4af9057eaa PSP: Fix up imageViewer to pause game
The only real way to pause the game is to take over the event loop, which is a little sad... Also fixed a possible crash when loading an image that was to big, by only rendering when we have _init set.

svn-id: r53741
2010-10-23 19:01:34 +00:00
Fabio Battaglia 74a53df11b DINGUX: fix compilation for the opengl branch
Moved events related code to backends/events/dinguxsdl/*
and move graphics related code to backends/graphics/dinguxsdl/*
Subclass OSystem_POSIX instead of OSystem_SDL

svn-id: r53730
2010-10-23 09:30:26 +00:00
Joost Peters d602e4a785 PSP: make vkbd's function keys match their visual representation
svn-id: r53728
2010-10-23 03:09:39 +00:00
Johannes Schickel b713beed18 OPENGL: Add an SdlEventSource member to OSystem_SDL instead of subclassing SdlEventSource.
Derived backends are allowed to overwrite that member in case they need special
handling of SDL events.

svn-id: r53675
2010-10-21 18:13:13 +00:00
Julien Templier 8ae4926da2 GPH: Rename README (package build step uses the README-GPH name)
svn-id: r53661
2010-10-21 03:41:44 +00:00
John Willis 33038a2d58 OPENPANDORA: Clean up support scripts and README.
svn-id: r53641
2010-10-20 13:07:52 +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
Yotam Barnoy d305587495 PSP: added dummy function to allow BS2.5 to build
svn-id: r53635
2010-10-20 05:59:11 +00:00
Yotam Barnoy 00bf6ab791 PSP: add missing return statements to image viewer
svn-id: r53601
2010-10-19 07:37:50 +00:00
Max Horn 36cd5caf95 COMMON: Add XMLParser::parseIntegerKey variant accepting a Common::String
Almost all places where we used XMLParser::parseIntegerKey were using
it like this:
  XMLParser::parseIntegerKey(str.c_str(), ...)
Since this makes the code harder to read, I overloaded the method to
also accept Commmon::String directly.
Also removed all .c_str() invocations where necessary.

svn-id: r53479
2010-10-15 12:19:13 +00:00
Yotam Barnoy 6fc10aeeac PSP: made image in viewer movable by pushing nub continuously
svn-id: r53462
2010-10-14 22:33:32 +00:00
Yotam Barnoy a4537b84bd PSP: made image viewer reset to the first image between engine loads
svn-id: r53460
2010-10-14 22:11:17 +00:00
Yotam Barnoy 7c22545899 PSP: added image viewer for viewing images during games
svn-id: r53455
2010-10-14 13:19:32 +00:00
Yotam Barnoy 90e12a43fd PSP: clarify and fix up display code
Also added support for stretching images, and fixed up displaying of large images as well as PNG files

svn-id: r53454
2010-10-14 13:05:40 +00:00
Lars Persson 2dea84947e SYMBIAN: Add makefiles for TOON Struck
svn-id: r53443
2010-10-13 19:02:24 +00:00
Johannes Schickel f08b144c5a OPENGL: More cleanup.
svn-id: r53441
2010-10-13 17:58:48 +00:00
Johannes Schickel 54f559dc51 OPENGL: Cleanup.
svn-id: r53436
2010-10-13 15:43:08 +00:00
Johannes Schickel 34302765ca OPENGL: Get rid of one ugly cast.
svn-id: r53435
2010-10-13 15:42:53 +00:00
Johannes Schickel 1769b520aa OPENGL: Cleanup.
svn-id: r53434
2010-10-13 15:42:33 +00:00
Johannes Schickel a2b96a2516 OPENGL: Replace SdlEventManager by SdlEventSource.
Formerly SdlEventManager was a subclass of DefaultEventManager but did not
really have anything in common with the idea of our EventManager interface.
Now I made a new object SdlEventSource which only subclasses EventSource
and which is responsible for obtaining events from SDL (and processing them).

svn-id: r53433
2010-10-13 15:42:16 +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
Johannes Schickel 3b81a9489e SOUND: Allow TiMidity support to be disabled via configure.
svn-id: r53395
2010-10-13 00:48:40 +00:00
John Willis 4f4ade6276 OPENPANDORA: Add latest backend code from branch-1-2-0.
* Ooops, forgot to sync this with HEAD. Sorry about that.

svn-id: r53162
2010-10-12 07:50:33 +00:00
Jordi Vilalta Prat 8388e0dfea JANITORAL: Clean trailing whitespaces.
svn-id: r53160
2010-10-12 02:18:11 +00:00
Yotam Barnoy 178c46c038 PSP: factored PngLoader out of virtual keyboard for further use
svn-id: r53108
2010-10-10 08:30:18 +00:00
Yotam Barnoy e47e474cff PSP: rewrote input code and added an input mode
The old input code was getting too messy. A redesign made it easier to modify and add several modes and combos, including one for 1st person games which benefit from a different control scheme. A combo switches between the modes. I also added directional support while the virtual keyboard is visible, using the nub. This allows moving around in the text in some games, and moving the character while typing for others (e.g. AGI)

svn-id: r53042
2010-10-06 21:26:45 +00:00
Willem Jan Palenstijn 7f2dfd0f82 EVENTS: Apply backspace hack to keyrepeat too
svn-id: r52993
2010-10-03 14:59:36 +00:00
Thierry Crozat 7296a2d8d0 I18N: Add translation for wince specific titles for key mapping dialog
Also backport fix from branch on translation of default title for key mapping
dialog. 

svn-id: r52959
2010-09-30 18:09:01 +00:00
Oystein Eftevaag ab01f42a4b IPHONE: The overlay will now always be in the native device resolution
svn-id: r52939
2010-09-29 00:19:13 +00:00
Max Horn 484bf9c269 ALL: Fixup some #define names
svn-id: r52935
2010-09-28 20:30:50 +00:00
Max Horn 1d3ce126ea SDL: Fix for 32 bit mode support (untested; might be good for backporting, not sure, somebody should verify)
svn-id: r52934
2010-09-28 20:29:25 +00:00
Fabio Battaglia 76992402d7 DINGUX: remove wrong comment and fill the readme with some infos
svn-id: r52894
2010-09-25 21:54:41 +00:00
Yotam Barnoy 73c5895ed2 PSP: ME MP3: cache stereo status
Bad timing can cause stereo status not to be picked up if at some point a MAD _header is not initialized.

svn-id: r52890
2010-09-25 20:38:40 +00:00
Lars Persson 744b301b22 SYMBIAN : Updated version nr to 1.13 in package file
svn-id: r52882
2010-09-25 14:59:24 +00:00
Yotam Barnoy 4807fdb4c7 PSP: fix issue in ME MP3 code. Release and init the ME when seeking.
Without this fix, the ME allocates more and more memory with every seek until it can't work.

svn-id: r52868
2010-09-23 21:03:20 +00:00
Lars Persson 3a3b2cf862 SYMBIAN : Add addSysArchivesToSearchSet to support local data files properly. (Instead of using extrapath)
svn-id: r52864
2010-09-23 10:37:10 +00:00