Denis Kasak
07042e31bc
* Made Game::loop() exit conditionally depending on whether the internal Game::_shouldExitLoop variable is set.
...
* Added mechanisms for signalling whether the main game loop should exit or not (Game::setExitLoop() and Game::shouldExitLoop())
svn-id: r42899
2009-07-29 19:38:02 +00:00
Max Horn
2205541e86
SCUMM: Enable looping in Indy3Mac sound effects
...
svn-id: r42898
2009-07-29 18:35:34 +00:00
Denis Kasak
bc89ce23d3
Fixed text bugs related to the fact that some strings in the data files don't end with '|' like they should.
...
svn-id: r42897
2009-07-29 16:39:12 +00:00
Johannes Schickel
0570280885
Fix a little bug in KyraEngine_MR::showBadConscience, which prevented Gunther's mouse shapes from showing up.
...
svn-id: r42895
2009-07-29 16:24:07 +00:00
Sven Hesse
ca7c35bc9a
Oops, fixing a regression I created with the Map_v4/Map_v2-merge
...
svn-id: r42894
2009-07-29 15:57:50 +00:00
Johannes Schickel
2eb1a62a96
Fix saving of item in hand in HoF and MR.
...
svn-id: r42892
2009-07-29 15:31:23 +00:00
Johannes Schickel
c6dd192ca6
Fix animation script sound effect opcode implementation in Kyra3.
...
svn-id: r42890
2009-07-29 14:54:27 +00:00
Max Horn
fcdd3b0310
SCUMM: Rewrote ScummEngine::inventoryScriptIndy3Mac for clarity
...
svn-id: r42889
2009-07-29 11:48:20 +00:00
Sven Hesse
5213cf9aa2
Adding a SoundType parameter to SmackerDecoder, defaulting to kSFXSoundType
...
svn-id: r42887
2009-07-29 10:17:44 +00:00
Max Horn
8bf0424832
Sort audio output rates numerically (see FR #2821525 )
...
svn-id: r42886
2009-07-29 09:19:56 +00:00
Max Horn
41139100a2
GUI: When clicking in a scrollbar to page up/down, don't scroll a full page; rather scroll a full page minus one line (see FR #2821508 ). This matches the behavior of the page up/down keys
...
svn-id: r42881
2009-07-29 08:55:17 +00:00
Max Horn
f6e16537b3
SCUMM: cleanup
...
svn-id: r42880
2009-07-29 08:55:04 +00:00
Denis Kasak
e9669b8e2b
* Moved event handling to DraciEngine::handleEvents()
...
* Added Game::start() method which is called from DraciEngine::go()
* Made Game::loop() suitable for calling from other places (like GPL scripts) by handling events, redrawing the screen, etc from inside. This way it doesn't freeze the game if it doesn't return immediately.
* Added Game::shouldQuit() and Game::setQuit() which can be used to signal the engine to quit.
* Fixed race condition related to mouse buttons not getting released.
* Instead of deleting frames for the title animation and adding a new one, reset the text for its frame.
svn-id: r42875
2009-07-29 01:11:53 +00:00
Denis Kasak
dd9303d27e
* Implemented GPL function ActPhase (as Script::funcActPhase())
...
* Trivial implementation of the Play GPL command
* Fixed Script::load() to load animation IDs to objects in increasing order (needed by funcActPhase())
svn-id: r42874
2009-07-29 01:02:50 +00:00
Denis Kasak
33af83c650
* Added method Animation::currentFrameNum()
...
* Renamed Animation::getFramesNum() to Animation::getFrameCount() for clarity.
svn-id: r42873
2009-07-29 00:46:36 +00:00
Max Horn
eb9600b5e9
SCUMM: Moved _inventoryOffset to ScummEngine_v2 and save it.
...
Fixes bug #2828417 : Zak V2: inventory position isn't reset when loading.
svn-id: r42870
2009-07-28 23:19:33 +00:00
Max Horn
caacc3a6df
Patch #2828644 : Support for mingw32ce 0.5.1 toolchain in configure script
...
svn-id: r42868
2009-07-28 22:42:08 +00:00
Max Horn
a565441f0c
Added missing initializer for member âSci::gfx_mode_t::format'
...
svn-id: r42867
2009-07-28 22:33:20 +00:00
Max Horn
50cd2750cc
SCI: Avoid using perror (it's not portable)
...
svn-id: r42866
2009-07-28 22:28:40 +00:00
John Willis
972cbb4b57
GP2XWiz: Add downscale support to the backend using the PocketPCHalfARM scaler from the WinCE backend (Maybe this should be moved into /graphics/scalers at some point?). Also enable all the ARM optemised routines in this and the GP2X backend.
...
svn-id: r42863
2009-07-28 20:22:38 +00:00
Torbjörn Andersson
7a6329a29b
Broken Sword 2, unsurprisingly, had the same subtitle drawing glitch for small
...
cutscenes that Broken Sword 1 had. And a memory leak. This should fix both.
svn-id: r42861
2009-07-28 17:53:59 +00:00
Torbjörn Andersson
f853376379
Fixed drawing subtitles for cutscenes that are narrower than the screen, and
...
erase the subtitles manually if they are drawn outside the frame.
svn-id: r42859
2009-07-28 17:19:33 +00:00
Sven Hesse
550d9cf39d
More alignment-related changes
...
svn-id: r42858
2009-07-28 16:28:32 +00:00
Sven Hesse
f5e9aa67c4
Changing stuff around a bit so alignment requirements won't increase
...
svn-id: r42857
2009-07-28 15:19:55 +00:00
Sven Hesse
f832d0fc56
Silencing two "empty loop body" warnings
...
svn-id: r42856
2009-07-28 15:05:44 +00:00
Sven Hesse
14114bf397
Abstracting off the block types from Imd::renderFrame() and Vmd::renderFrame()
...
svn-id: r42851
2009-07-27 19:01:17 +00:00
Johannes Schickel
17fe3ce29e
Oops enabled HACK to prevent multiple OPL instances again.
...
svn-id: r42849
2009-07-27 18:19:16 +00:00
John Willis
ebe6a0ac23
GP2XWiz: Update GP2X Wiz bundle.sh to copy libraries into the distribution file from the tool chain where the libraries are broken on the device. Also add LD_LIBRARY_PATH 'hack' to launch script to ensure bundled libraries are used over system ones.
...
svn-id: r42847
2009-07-27 18:05:16 +00:00
Johannes Schickel
595501b60c
Fix bug #2827459 "ITE: Ingame GUI does not list slots 96-99", by defining in SagaMetaEngine that the last valid save slot for SAGA is slot 95.
...
svn-id: r42845
2009-07-27 17:48:40 +00:00
Johannes Schickel
d165f85a58
Formatting.
...
svn-id: r42844
2009-07-27 17:04:06 +00:00
Robin Watts
816bd9a7ea
Add ARM code version of Normal2x scaler.
...
Add ARM only aspect ratio correcting version of Normal2x scaler.
Make WinCE port use Normal2x by default if the screen is large enough.
Make WinCE port use aspect ratio correcting version if panel is hidden.
svn-id: r42843
2009-07-27 16:29:36 +00:00
Willem Jan Palenstijn
ed763cccfe
Fix format string issues (and compiler warnings).
...
Patch by salty-horse.
svn-id: r42842
2009-07-27 16:04:35 +00:00
Denis Kasak
5a44af4433
Enabled running of look/use scripts on left/right mouse button press for testing (Warning: unstable in some places).
...
svn-id: r42841
2009-07-27 05:34:22 +00:00
Denis Kasak
21a22f7f77
Added methods to Mouse for setting the state of the button.
...
svn-id: r42840
2009-07-27 05:30:58 +00:00
Denis Kasak
019b7f310b
* Added Game::getObjectWithAnimation() which finds the object that owns an animation with a certain ID
...
* Made GameObjects track their titles as Strings rather than byte *
* Made the engine display the title of the object under the cursor (added a special animation ID for that, kTitleText)
svn-id: r42839
2009-07-27 04:51:34 +00:00
Denis Kasak
0098084969
Fixed one more bug related to animations having no frames.
...
svn-id: r42838
2009-07-27 04:47:38 +00:00
Denis Kasak
aa6efa33f1
Fixed segfault when the screen is deleted before animations (the Animation destructor still needs to use the screen).
...
svn-id: r42837
2009-07-27 04:20:27 +00:00
Denis Kasak
673bae4443
* Added AnimationManager::addText() for adding text animations
...
* Added AnimationManager::getTopAnimationID(x, y) which returns the ID of the top layer animation located on a point
* Added Animation::getScale{X,Y}()
* Fixed a few bugs related to animations sometimes having no frames
svn-id: r42836
2009-07-27 04:18:44 +00:00
Denis Kasak
fa59e4b16b
* Added Sprite::getPixel() (takes into account whether a sprite is mirrored or scaled)
...
* Made the Text class internally store a Common::String instead of a byte *
svn-id: r42835
2009-07-27 04:14:59 +00:00
Denis Kasak
ddf8f1cbb5
* Removed unused variable
...
* Fixed unsigned to signed comparison warning
svn-id: r42834
2009-07-27 03:57:43 +00:00
Denis Kasak
b14828c4ce
* Added Font::getStringHeight()
...
* Made Font::getStringWidth() calculate the width of the string properly now that handling of multi-row strings is in
* Fixed bug which caused the last column of pixels in the last letter of a string to linger on the screen
svn-id: r42832
2009-07-27 03:08:19 +00:00
Joost Peters
6d18ada7ef
fix/workaround for cruise crash on OSX
...
svn-id: r42826
2009-07-26 21:06:53 +00:00
Marcus Comstedt
dc6fa53bad
Create IP.BIN.
...
svn-id: r42825
2009-07-26 20:41:33 +00:00
Johannes Schickel
df7e4ad7ec
Add a todo to FontSJIS::drawChar taking an Graphics::Surface.
...
svn-id: r42824
2009-07-26 14:40:44 +00:00
Johannes Schickel
d1fed5cee1
Instead of only printing a warning, when no SJIS char data is present, just return to the caller.
...
svn-id: r42823
2009-07-26 14:40:03 +00:00
Johannes Schickel
07c10c07c4
Add NEWS entry about new SJIS code.
...
svn-id: r42822
2009-07-26 14:24:45 +00:00
Johannes Schickel
4b27c43b0a
Reflect code to test the magic bytes in the sjis.fnt header.
...
svn-id: r42821
2009-07-26 14:19:02 +00:00
Johannes Schickel
84c0bf22d2
Simplify KYRA's SJIS font loading code.
...
svn-id: r42820
2009-07-26 14:18:49 +00:00
Johannes Schickel
ec67b583b0
Add way to overwrite default SJIS font.
...
svn-id: r42819
2009-07-26 14:18:34 +00:00
Johannes Schickel
be9c906c72
Specify that the chars passed to FontSJIS::drawChar should be little endian.
...
svn-id: r42818
2009-07-26 14:18:21 +00:00