52263 Commits

Author SHA1 Message Date
Torbjörn Andersson
659436739f TONY: Make the verb menu sound effects play
At least for now, preloading utility sound effects *is* needed in
ScummVM. And since we now have preloading of both normal and utility
sound effects, I've unstubbed the unloading functions as well.
2012-08-25 12:56:02 +02:00
Alyssa Milburn
a9828c8818 TONY: Replace copyMemory with memcpy. 2012-08-25 10:08:10 +02:00
Alyssa Milburn
b14a616f3f TONY: Get rid of RMString. 2012-08-25 10:08:10 +02:00
Alyssa Milburn
b77306bfcc TONY: Convert more strings to Common::String. 2012-08-25 08:41:22 +02:00
Alyssa Milburn
ff9569572a TONY: Store savegame names with Common::String. 2012-08-25 08:41:22 +02:00
Alyssa Milburn
ba20f1d90d TONY: Remove unused members of RMTextItemName. 2012-08-25 08:41:21 +02:00
Alyssa Milburn
f917a4beab TONY: Use Common::String in writeText.
This uses an array of lines rather than trying to stick nulls into
the string, and so fixes wrapping on hyphens (which overwrote the
character before the hyphen). Thanks to eriktorbjorn for both
finding the bug and working out what was going wrong.
2012-08-25 08:41:21 +02:00
Alyssa Milburn
af134e0244 TONY: Animate mouse cursors.
This restores the forgotten doFrame code for RMPointer, which fixes
the bird mouse cursor. Thanks to eriktorbjorn for noticing it.
2012-08-25 08:41:21 +02:00
Alyssa Milburn
aa603bc208 TONY: Mark screen dirty in RMGfxClearTask.
This fixes the "A LONG TIME AFTER..." screen when talking to the old
woman in the booth. Thanks to eriktorbjorn for noticing it.
2012-08-25 08:41:21 +02:00
Alyssa Milburn
7815c05220 TONY: Use the right dirty rects for drawAA.
This makes it match the relevant non-AA code, and fixes problems
due to the invalid rects. (Perhaps we don't need dirty rects here
at all though, since all the callers seem to call the non-AA code
first with the same parameters?)
2012-08-25 08:41:21 +02:00
Alyssa Milburn
68c6109e76 TONY: Draw the dirty rectangle debugging last.
Otherwise the rects are overwritten by the actual drawing.
2012-08-25 08:41:21 +02:00
Alyssa Milburn
0163bd38e8 TONY: Fix background dirty rect handling.
Reset the scrolling state on load, so that when a new scene is
loaded, the background is redrawn. Also, revert the workaround
in d0d15af9, since this (hopefully) fixes the underlying problem.
2012-08-25 08:41:21 +02:00
Alyssa Milburn
61b11037c3 TONY: Ignore draw attempts with non-positive width/height.
This avoids an invalid dirty rect (width -1) during the
introduction scene inside Halloween Park.
2012-08-25 08:41:21 +02:00
Paul Gilbert
bad6ec8388 TONY: Fixed problem with spoken voices being clipped when timed text mode is on. 2012-08-23 22:05:23 +10:00
Paul Gilbert
93e10b5210 TONY: Removed some debug warnings which aren't needed any longer 2012-08-23 22:05:22 +10:00
Alyssa Milburn
b1486aa5fe TONY: Fix spelling of setStretch. 2012-08-22 21:56:12 +02:00
Alyssa Milburn
93f145773e TONY: Fix saveSoundSettings to use setInt for talkspeed. 2012-08-22 21:52:22 +02:00
Alyssa Milburn
c340739001 TONY: Replace _vm with g_vm. 2012-08-22 21:51:51 +02:00
Paul Gilbert
482c1a71b0 TONY: Removed some TODO warnings that aren't needed any longer 2012-08-22 22:28:08 +10:00
Paul Gilbert
dfb0e4f700 TONY: Fix dirty rect refresh glitch in the introduction sequence 2012-08-12 19:47:48 +10:00
Torbjörn Andersson
846f9644dd TONY: Clip width to avoid crash when drawing flipped sprite
This fixes - or at least work around - a failed assertion when
Pantagruel leaves the office at the beginning of the game.
2012-08-01 22:34:00 +02:00
Torbjörn Andersson
fab814b774 TONY: Remove unused variable.
It wasn't used in the original engine either.
2012-07-31 21:29:25 +02:00
Torbjörn Andersson
3b40d14152 TONY: Whitespace changes. 2012-07-31 20:36:48 +02:00
Torbjörn Andersson
a5bfbeed32 TONY: Don't pass uninitialised rect to addDirtyRect()
Wait until after we have the destination rect. Unfortunately, this
does not fix any of the graphical glitches during the intro.
2012-07-26 20:15:32 +02:00
Torbjörn Andersson
09d9b0d8c9 TONY: Change platform from DOS to Windows
This is cosmetic, just to keep the detector from saying that Tony
Tough is a DOS game.
2012-07-15 20:48:43 +02:00
Torbjörn Andersson
9cc7d6c6c5 TONY: Fix crash when entering "sepia" mode by loading a savegame.
Apparently, in this case the cursor is updated before _precalcTable
has been created. Added safeguard against that.
2012-07-02 20:51:14 +02:00
Torbjörn Andersson
924aac4389 TONY: Fix warning about statement without effect. 2012-07-02 20:48:57 +02:00
Paul Gilbert
58b03ec446 TONY: Refactored the Sepia (B & W) mode so the cursor is converted as well 2012-07-02 20:53:31 +10:00
Torbjörn Andersson
65a8799f96 TONY: Added "sepia mode".
This works by adding a wrapper function for copyRectToScreen(). As
far as the engine is concerned, it still draws everything in color.
The mouse cursors are still in color, but that can be fixed later.
2012-06-24 11:09:08 +02:00
Paul Gilbert
69ce6e35f4 TONY: Bugfix for crash when changing scene whilst music is playing 2012-06-23 16:28:03 +10:00
Paul Gilbert
46d87ef76a TONY: Bugfix for loading ambient music when restoring a savegame 2012-06-23 15:25:03 +10:00
Paul Gilbert
717756749d TONY: Merge of dirty rect functionality 2012-06-23 00:57:21 +10:00
Paul Gilbert
eef6b444df TONY: Created a debugger command 'dirty_rects' to show dirty rect areas on-screen 2012-06-22 23:47:39 +10:00
Torbjörn Andersson
2990482406 TONY: Fix Valgrind warning
The loop uses _ctx->msg, so don't delete it until the loop is done.
2012-06-21 21:30:09 +02:00
Paul Gilbert
17289089e6 TONY: Fix for adding dirty rects for 8-bit RLE images 2012-06-21 22:58:58 +10:00
Strangerke
fdc619191b TONY: Translate two comments 2012-06-21 07:31:38 +02:00
Strangerke
85150232f0 TONY: Some more renaming (thanks Hkz) 2012-06-21 00:20:16 +02:00
Strangerke
2d1d6630d6 TONY: Remove useless CODEC class definition 2012-06-20 22:17:41 +02:00
Alyssa Milburn
1ee68078c1 TONY: Replace the FPStream code.
This just removes the original code and replaces it with a quickly-
written trivial implementation similar to clone2727's sfx code. It
seems to at least sort of work. :-)
2012-06-20 19:36:25 +02:00
Paul Gilbert
aa775b4497 TONY: Some bugfixes and cleanup for the music support code 2012-06-19 22:37:56 +10:00
Paul Gilbert
d2061f29be TONY: Added initialisation of FPSound fields in it's constructor 2012-06-19 22:06:30 +10:00
Paul Gilbert
9d437a26dd TONY: Fix some compiler warnings in the newly added sound code 2012-06-19 21:19:17 +10:00
Paul Gilbert
b8d5e17fef TONY: Added an extra check for shouldQuit into the main event loop 2012-06-19 21:14:56 +10:00
Paul Gilbert
61d460a854 TONY: Implement more of the music related code from the original 2012-06-19 20:50:48 +10:00
Paul Gilbert
0aa3d39cf7 TONY: Remove unused stubs for LZO compression 2012-06-18 19:56:28 +10:00
Paul Gilbert
565bf7383a TONY: Refactored the RMRect topLeft/bottomRight properties into a cleaner implementation 2012-06-18 19:50:29 +10:00
Strangerke
f2e6b46153 TONY: Rename RMFontDialog 2012-06-18 08:28:13 +02:00
Strangerke
e8a6f61f88 TONY: Remove useless void in function declaration 2012-06-18 08:24:33 +02:00
Strangerke
bb55045cc8 TONY: Rename two variables 2012-06-18 08:03:02 +02:00
Strangerke
6a7fa693ef TONY: Fix a typo in utils comments 2012-06-18 07:58:19 +02:00