Max Horn
3d4e9fe674
BACKENDS: Allow various files to use stuff from time.h
2011-05-03 11:27:44 +02:00
Max Horn
42ab839dd6
AUDIO: Rename sound/ dir to audio/
...
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
ab039812e7
COMMON: OSystem now has a PaletteManager
...
svn-id: r55806
2011-02-07 17:52:38 +00:00
Yotam Barnoy
8d1f3f00ad
PSP: fixed bug exhibited in Gob engine with blacked out video frames
...
The problem was that I was allowing changes to the palette (in this case) even before the separate display thread, which is synchronized to vsync, was done drawing. This caused the palette to change mid-render.
The fix is a semaphore synchronizing the threads.
svn-id: r54942
2010-12-17 10:58:34 +00:00
Johannes Schickel
e1030e53a5
BACKENDS: Implement logging API proposed by Max on -devel.
...
This commits a slightly modified patch from my patch tracker item #3104630
"OSYSTEM: Add logging API as proposed by Max on -devel".
I was not able to test compilation on Android and SamsungTV, since there is no
toolchain for those on buildbot (or I was too blind to find them).
svn-id: r54339
2010-11-18 19:12:14 +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
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
Jordi Vilalta Prat
8388e0dfea
JANITORAL: Clean trailing whitespaces.
...
svn-id: r53160
2010-10-12 02:18:11 +00:00
Yotam Barnoy
65fe8d817c
PSP: moved RTC to singleton to allow usage by classes other than Osystem
...
svn-id: r50116
2010-06-21 15:13:36 +00:00
Yotam Barnoy
e7e8808aff
PSP: got rid of SDL
...
svn-id: r49903
2010-06-16 09:04:27 +00:00
Max Horn
703f0ca29c
SYSTEM: Unify OSystem::getSupportedFormats() signature
...
svn-id: r49838
2010-06-15 12:21:08 +00:00
Yotam Barnoy
c8ee854600
PSP: switched to psp semaphores rather than SDL's. Removal of SDL is almost complete.
...
svn-id: r49572
2010-06-10 13:41:29 +00:00
Yotam Barnoy
f770156dcc
PSP: fixed missing frame issue with kyrandia and possibly other games by calling updateScreen() from pollEvent() once in a while
...
svn-id: r49541
2010-06-09 14:15:51 +00:00
Yotam Barnoy
356728dab7
PSP: found bug in fast getMillis() implementation. Fixed it by adding a fixed amount to the time counter.
...
svn-id: r49485
2010-06-07 13:47:27 +00:00
Yotam Barnoy
1caf98700b
PSP: to fix the audio, I cleaned up the audio thread and changed the thread priorities.
...
svn-id: r49200
2010-05-24 18:20:16 +00:00
Yotam Barnoy
55e29af78a
PSP: switched to using slightly faster delay and getMillis
...
svn-id: r49179
2010-05-24 11:41:45 +00:00
Yotam Barnoy
cfbf1a8a67
PSP: turn off psp audio thread again. Must have tested it wrong.
...
svn-id: r49178
2010-05-24 09:19:40 +00:00
Yotam Barnoy
87eb782496
PSP: switched to the way SDL does things in the audio thread to get rid of clicking. PSP's thread is still more efficient.
...
svn-id: r49175
2010-05-24 06:57:58 +00:00
Yotam Barnoy
734042a32c
PSP: commented out new PSP audio. Still has some clicking issues
...
svn-id: r49169
2010-05-23 19:32:56 +00:00
Yotam Barnoy
20c654f63b
PSP: replaced SDL's timer with much simpler and more efficient PspTimer class
...
svn-id: r49155
2010-05-23 11:48:21 +00:00
Yotam Barnoy
7a6a2a62ee
PSP: switched from SDL's audio to my own thread. Removed needless blocking while playing and made it generally more efficient. To deactivate, simply comment out USE_PSP_AUDIO
...
svn-id: r49149
2010-05-23 05:51:32 +00:00
Yotam Barnoy
8b59e45e6e
PSP: added option for render by callback and fixed up and cleaned up debug mechanism. This allows for about 4% speedup since we no longer need to wait for VSYNC in our main thread. I'll activate it as soon as I've tested it out properly.
...
svn-id: r49055
2010-05-17 07:22:26 +00:00
Yotam Barnoy
f036b6b9d2
PSP:Implemented fingolfin's suggestion for cleaning up debugging code
...
svn-id: r48792
2010-04-25 15:12:24 +00:00
Max Horn
87028c546f
PSP: Fix code formatting using astyle
...
svn-id: r48634
2010-04-12 07:28:54 +00:00
Yotam Barnoy
9a2eac7eee
PSP: refactoring/redesign of the backend
...
svn-id: r48632
2010-04-12 06:49:05 +00:00
Max Horn
9b837d66d4
Replace Audio::MixerImpl::setOutputRate with a new 'sampleRate' param to the MixerImpl constructor
...
svn-id: r48238
2010-03-11 23:39:51 +00:00
Max Horn
c97ee14a65
Remove last traces of OSystem::getOutputSampleRate()
...
svn-id: r48229
2010-03-10 21:01:44 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Yotam Barnoy
832779497e
PSP: added keypad to d-pad. Allows control of AGI,SCI0, and Indy3
...
svn-id: r46810
2009-12-31 23:59:07 +00:00
Max Horn
bfc553081c
PSP: Fix whitespace usage and code formatting
...
svn-id: r46126
2009-11-24 14:18:46 +00:00
Yotam Barnoy
b8b042d4bf
PSP: Replaced virtual keyboard and cleaned up makefiles in the process.
...
svn-id: r46120
2009-11-24 10:33:30 +00:00
Yotam Barnoy
f79d3bb7cd
PSP: small fix for cache coherency affecting nippon and some others. Trunk only.
...
svn-id: r45328
2009-10-22 06:50:59 +00:00
Yotam Barnoy
739b462753
PSP palette fix for bsword1: fixed cache coherency issue
...
svn-id: r45165
2009-10-16 12:45:53 +00:00
Joost Peters
15e427c2c2
whitespace changes aka. buildbot rebuilding :)
...
svn-id: r44831
2009-10-09 16:35:37 +00:00
Max Horn
42120ed626
Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
...
svn-id: r44793
2009-10-08 19:41:38 +00:00
Joost Peters
fd5cf8f2db
Cleaned up version of patch #2872626 : "PSP: flicker part 2"
...
svn-id: r44646
2009-10-04 22:59:39 +00:00
Max Horn
8ba75fc522
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
...
svn-id: r44495
2009-09-30 16:16:53 +00:00
Joost Peters
0a36b67a1f
reduce display list size - we only use a fraction of it.
...
svn-id: r44418
2009-09-27 20:46:38 +00:00
Joost Peters
6a5bd81599
PSP: improved suspend/resume support [patch from bluddy]
...
svn-id: r44276
2009-09-23 16:11:23 +00:00
Joost Peters
161659052b
cleanup
...
svn-id: r44253
2009-09-22 09:37:39 +00:00
Joost Peters
58f7f2132e
Apply patch #2863653 : "PSP: Flickering problem fix" + some formatting changes and fixing several incorrect depth values.
...
svn-id: r44251
2009-09-22 09:31:19 +00:00
Joost Peters
978d9dfd10
some cleanup
...
svn-id: r43618
2009-08-21 22:44:49 +00:00
Joost Peters
9a3218e673
unify OSystem_PSP_GU and OSystem_PSP (which was hopelessly outdated and mostly useless)
...
svn-id: r43615
2009-08-21 22:30:35 +00:00
Joost Peters
7d350b215c
fix compilation after RGB API changes
...
svn-id: r43606
2009-08-21 19:11:02 +00:00
Joost Peters
bbac75bc1c
PSP: throttle the number of updateScreen() calls
...
svn-id: r43539
2009-08-19 16:23:44 +00:00
Joost Peters
a35056b555
Implement setCursorPalette(), correct hasFeature() <-> getFeatureState() mixup.
...
svn-id: r43519
2009-08-18 18:06:50 +00:00
Joost Peters
ed2a733b2a
PSP: Make R-trigger act as a context sensitive modifier key, remap ENTER to triangle
...
svn-id: r43517
2009-08-18 17:12:01 +00:00
Joost Peters
62bcb2e51b
Commit (slightly) modified version of patch #2831248 : Allow suspend/resume for PSP
...
svn-id: r43477
2009-08-17 12:57:37 +00:00
Max Horn
bb28ed7b7a
Changed OSystem::setWindowCaption to expect ISO LATIN 1 encoded input;
...
also intentionally broke WinCE and Symbian ports (in an obvious way that
can be undo by commenting out some text) -- hopefully this will get the
maintainers' attention during the next release cycle, unlike my emails
svn-id: r41932
2009-06-28 19:58:11 +00:00