D G Turner
d035bcae82
TOON: Cleanup and Memory Usage Reduction fixes in PathFinding Heap.
...
This halves the size of the pathifnding heap, but adds warnings if push()
is attempted on a full heap.
2011-07-20 23:05:24 +01:00
sylvaintv
ab5850af62
TOON: Fix default walk to object with screen scrolling
...
Bug #3363119 : "Toon: Player desapear when you use a object in pepper plant"
2011-07-12 22:55:14 +02:00
sylvaintv
831d358d42
TOON: Fix rare palette glitch during one frame after cutscene
2011-07-09 03:26:43 +02:00
sylvaintv
36222c747f
TOON: Fixed palette problem in LoadPicture
...
Bug #3325272 : "Toonstruck (Spanish) Bad Graphic in squirrel book"
Was a "full" palette in spanish and a "half" palette in english version.
Made it choose the good mode automatically based on color count.
2011-07-09 02:55:28 +02:00
sylvaintv
53985000db
TOON: Fix bad character visibility after restore
...
Bug #3307195 : "TOON: Two instances of Flux Wildly"
2011-07-09 01:50:38 +02:00
eriktorbjorn
4b51bef7ae
TOON: Add delay to inventory rendering loop. Uses a bit less CPU now.
2011-06-27 21:48:00 +02:00
eriktorbjorn
e8c704a025
TOON: Fix the bottom pixels of text being cut off
...
It's a dirty rect problem. The computeSize() function needs to
take into consideration that the glyph may be offset, so it's not
enough to just look at its size. For now, I'm assuming that this
is only a problem with characters that stick out below the base
line, so that's all this patch tries to fix. Let's see if that's
enough.
2011-06-26 23:13:49 +02:00
Julien
367605d774
TSAGE: Allocate resource decoding buffer on the heap
2011-06-23 15:11:37 +08:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Max Horn
01f806c2db
DETECTOR: Treat file based fallback like any other fallback method
2011-06-14 18:52:11 +02:00
Max Horn
7c992d6598
DETECTOR: Merge ADParams into AdvancedMetaEngine
2011-06-14 18:17:01 +02:00
Max Horn
95bfa81168
TOON: Reduce header dependencies
2011-06-10 22:15:47 +02:00
Max Horn
5e90393697
TOON: Switch to alternate AdvancedMetaEngine, avoid ADParams
2011-06-10 22:15:45 +02:00
Max Horn
4827cc914a
ENGINES: Change incorrect use of 'target' to 'gameid'
2011-06-10 22:15:40 +02:00
Alyssa Milburn
7c4f772e7e
TOON: Tidy up decodeADPCM.
2011-06-06 10:55:36 +02:00
Max Horn
477d6233c3
ENGINES: Change 2nd param of Engine::saveGameState to Common::String
2011-06-02 18:31:59 +02:00
Max Horn
59dfd6e859
TOON: Remove all instances of s(n)printf
2011-06-02 10:22:23 +02:00
sylvaintv
3429a14c11
TOON: Fix crash #3308220
...
Bug #3308220 : "Crashes"
Added clipping to magnifier effect
2011-06-01 23:49:19 +02:00
Max Horn
185536e4b1
TOON: Remove unused variable
2011-05-25 23:12:53 +02:00
Max Horn
a3c3264561
TOON: Use RandomSource instead of rand()
2011-05-17 12:28:39 +02:00
Max Horn
4cbe4ede66
COMMON: Registers RandomSources in constructor with the event recorder
...
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +02:00
Thierry Crozat
3c59e37035
ENGINES: Unify engine names
...
This unifies the engine names in MetaEngine::getName() and the
credits. In particular drop "Engine" or "engine" from the names when
it was present and use expanded names in credits when the
MetaEngine uses it (e.g. "Beneath a Steel Sky" instead of "BASS").
2011-05-16 00:11:32 +01:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Johannes Schickel
71bdb86e02
Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
...
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16
Conflicts:
graphics/png.cpp
2011-05-01 16:54:45 +02:00
Bluddy
781e178df3
TOON: Reduced fragmentation by using a fixed value for pathfinding allocation
...
Toon makes some rather big allocations for pathfinding, alternating between 3MB and 6MB). In small devices, this creates really bad fragmentation which can cause crashes. I set the size at a fixed 6MB.
2011-04-28 18:02:07 +03:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
sylvaintv
f246382f4b
TOON: fix main title crash - Bug #3291725 fixed
...
Bug #3291725 : "TOON: Crash on the title screen"
2011-04-23 21:06:36 +02:00
Johannes Schickel
0342332be0
TOON: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
2011-04-17 16:34:00 +02:00
sylvaintv
1fd034f326
TOON: Fix Flux staying outside of the dressing room
2011-04-17 15:46:55 +02:00
sylvaintv
f809e94dd2
TOON: Fix dirty rect issues with fonts
2011-04-17 15:27:18 +02:00
sylvaintv
a383fe452f
TOON: Fix palette issues in alligators scene
...
Bug #3264989 : "TOON: Palette problems"
2011-04-17 14:18:29 +02:00
Max Horn
169512852e
TOON: Use shared ADPCM data tables
2011-04-13 12:48:58 +02:00
Max Horn
79f514a397
TOON: Make ADPCM tables const
2011-04-13 11:49:24 +02:00
Max Horn
0ce2ca4e00
COMMON: Replace MKID_BE by MKTAG
...
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
sylvaintv
8451252786
TOON: Fix potential var underflowing
2011-04-09 19:29:32 +02:00
sylvaintv
0db4498bd9
TOON: Fix more valgrind issues
...
Fix potential more invalid read issues in RIF loading
2011-04-09 19:07:20 +02:00
sylvaintv
3dc87c4f3d
TOON: Fix several Valgrind issues
...
Maybe caused random crashes on reading invalid memory
2011-04-06 23:07:11 +02:00
sylvaintv
0a983e1df5
TOON: Fix more dirty rect issues
...
Especially not refreshing pictures when viewing
inventory items and corrupted last line of the screen.
2011-03-14 23:28:15 +01:00
sylvaintv
3964ce8123
TOON: Add more dirtyRect checks
2011-03-13 23:11:47 +01:00
strangerke
fae2be668f
TOON: Cleanup
2011-03-10 01:32:03 +01:00
strangerke
cf657d09e8
TOON: Janitorial: Suppress blanks at end of lines
2011-03-10 00:25:29 +01:00
sylvaintv
53d6a4f831
TOON: Decrease CPU usage
...
Added dirty rects
Reduced the max FPS from 60 to 30
2011-03-08 00:51:21 +01:00
sylvaintv
7d36aabd42
TOON: Fix crashs when toon.dat is not present
2011-03-06 18:08:24 +01:00
sylvaintv
95a1624f6d
TOON: Improve music fading between rooms
2011-03-06 17:54:03 +01:00
sylvaintv
bc73a6bd76
TOON: Fix global package loading
2011-03-06 17:52:39 +01:00
sylvaintv
6873e96732
TOON: Integrated resource cache patch by eriktorbjorn
...
Reduced global memory usage of the game
Global PAK files are not loaded entirely anymore
2011-03-05 23:01:25 +01:00
Ori Avtalion
d90c7a8314
TOON: Avoid hiding overloaded virtual methods
2011-02-27 22:32:50 +02:00
Johannes Schickel
e21d6e0d11
Merge branch 'osystem-palette' of https://github.com/lordhoto/scummvm into master
...
Conflicts:
backends/platform/android/android.cpp
engines/sci/graphics/screen.cpp
engines/sci/graphics/transitions.cpp
2011-02-19 21:46:45 +01:00
Alyssa Milburn
be7fd9be50
TOON: Initialise all locations.
...
This stops the location save code from walking off the end of _rifBoxesFlags
due to _numRifBoxes being invalid.
Fix for bug #3183934 ("TOON: Crash on save").
2011-02-17 21:47:27 +01:00
Alyssa Milburn
ec94ef4e64
TOON: Fix TextResource on big-endian.
...
Fix for bug #3183943 ("TOON: No speech and no text").
2011-02-17 21:15:37 +01:00
Johannes Schickel
a02454644a
Merge branch 'master' into osystem-palette
...
Conflicts:
backends/platform/wii/osystem_gfx.cpp
2011-02-15 23:42:50 +01:00
eriktorbjorn
7ecab9a982
TOON: Disable quick save/load from the main menu screen.
...
Saving is pointless and loading doesn't work right. Unless it's
really easy, making quick load work from the main menu is hardly
worth it, since it has a perfectly usable load button already.
2011-02-14 20:44:18 +01:00
Johannes Schickel
42bc90dde0
TOON: Adapt to setPalette RGBA->RGB change.
2011-02-14 17:08:33 +01:00
Torbjörn Andersson
d8d9305c22
TOON: Fix memory leak
...
PAK files were not being unloaded because closePackage() was being
called with a slightly different file name than than openPackage().
svn-id: r55878
2011-02-11 05:13:37 +00:00
Max Horn
42ab839dd6
AUDIO: Rename sound/ dir to audio/
...
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
2d1c8a3533
ALL: Fix whitespaces / indention
...
svn-id: r55818
2011-02-07 23:01:06 +00:00
Max Horn
41121be4d6
GUI: Rename SaveLoadChooser::runModal to runModalWithPluginAndTarget
...
This avoids hiding an overloaded virtual method, which in turn can
cause weird bugs (see also the next commit).
svn-id: r55815
2011-02-07 22:58:22 +00:00
Max Horn
ab039812e7
COMMON: OSystem now has a PaletteManager
...
svn-id: r55806
2011-02-07 17:52:38 +00:00
David Turner
5167cd390c
TOON: Added workaround for obvious glitch in first intro video.
...
This glitch occured in the original interpreter and is probably due an encoding error of 209_1M.SMK.
svn-id: r55798
2011-02-07 02:35:17 +00:00
David Turner
36b6d961c2
TOON: Ensure minimum delay in worst case of render() loop to allow thread scheduling.
...
This should ensure that CPU usage is not pegged at 100%.
svn-id: r55790
2011-02-05 21:58:44 +00:00
Sylvain Dupont
69a88e315c
TOON: Fix formatting issues
...
svn-id: r55787
2011-02-05 13:12:42 +00:00
Sylvain Dupont
58884b1244
TOON: Add some sleep if the game refreshes too fast
...
Prevents the game from using 100% CPU?
svn-id: r55786
2011-02-05 12:11:57 +00:00
Sylvain Dupont
4aaa045017
TOON: Fixed two dialog color mistakes
...
svn-id: r55777
2011-02-04 23:38:40 +00:00
Sylvain Dupont
ec36d39f25
TOON: Fix Amiga compile
...
svn-id: r55773
2011-02-04 19:02:40 +00:00
Sylvain Dupont
7ad4241649
TOON: Remove misc/ from paths since it's in global folders
...
Caps'ed the filenames, even if it should not matter normally
svn-id: r55714
2011-02-01 23:26:54 +00:00
Sylvain Dupont
5257d91e99
TOON: Fixes two movie issues
...
- Can't skip the videos with left button anymore, now the Nefarius video on the
TV is played normally and not skipped.
- Last video playback 2x too big in height.
svn-id: r55662
2011-01-30 20:21:45 +00:00
Sylvain Dupont
3cd1ac9ca6
TOON: Add coordinates clamping for safety
...
In some rare cases, Drew position is outside the valid area.
Made sure it does not crash in these cases.
svn-id: r55655
2011-01-30 13:31:13 +00:00
Sylvain Dupont
5934ccd184
TOON: Fix the last known z-order issues
...
Rewrote the Z-order management, it's now very close to the original code
svn-id: r55650
2011-01-30 02:18:53 +00:00
Sylvain Dupont
01c32f7287
TOON: More Drew visibility fixes
...
In the castle, Drew disappeared if you clicked twice on the closed door.
svn-id: r55649
2011-01-30 00:44:51 +00:00
Sylvain Dupont
9c17cedd40
TOON: Bug #3124518 with disappearing inventory items fixed
...
Bug #3124518 : "TOON: loss of inventory items in Bricabrac's machine room"
Was caused by recursive walkTo that were not canceling out.
svn-id: r55641
2011-01-29 23:03:08 +00:00
Sylvain Dupont
c450ac28e9
TOON: Add workarounds in transformed barn scene
...
Drew does not disappear anymore in the barn when filling his can.
Slowed down the talk animations a bit
svn-id: r55626
2011-01-29 22:15:57 +00:00
Sylvain Dupont
7765c24558
TOON: Fix some palette issues
...
- In fade out when leaving certain rooms
- When loading a game in a cutaway/closeup state
svn-id: r55625
2011-01-29 20:59:46 +00:00
Sylvain Dupont
96f4cc4b8a
TOON: Pathfinding & walking improvements
...
Use direct line path if possible
Smooth facing direction to avoid flickering (entering zanidu shuttle for example)
Fix possible lockups
svn-id: r55624
2011-01-29 20:12:27 +00:00
Sylvain Dupont
875a840a7a
TOON: Fixed crash of bug #3166533
...
Bug #3166533 : "TOON: crashes when leaving room"
svn-id: r55621
2011-01-29 18:42:33 +00:00
Sylvain Dupont
83866978be
TOON: Reenable keyboard events
...
Was disabled when some sticky keyboard flags were activated
svn-id: r55617
2011-01-29 16:19:55 +00:00
Sylvain Dupont
896b87c710
TOON: Bug #3166570 fixed. Magnifier effect when selecting Enigma book
...
Bug #3166570 : "TOON: Wrong mouse-cursor for Item "Book-Enigma"
svn-id: r55616
2011-01-29 16:02:20 +00:00
Filippos Karapetis
5b958eb0d1
TOON: Check for the state of modifier keys (control/alt/shift) when handling game hotkeys
...
Fixes bug #3166522 at engine level (fix 2/2)
svn-id: r55568
2011-01-27 14:20:16 +00:00
Eugene Sandulenko
caa6684752
VIDEO: Move video classes to Video:: namespace
...
svn-id: r55479
2011-01-23 19:08:09 +00:00
Eugene Sandulenko
806ccf5d25
GRAPHICS: Move graphics/video/ to video/. Step 1/2
...
svn-id: r55473
2011-01-23 17:14:43 +00:00
David Turner
243fe811ef
TOON: Fix Further Memory Leaks in Savegame Loading.
...
svn-id: r55408
2011-01-22 05:21:51 +00:00
David Turner
39de104c5c
TOON: Fix Uninitialized Memory Read During Cursor Animation on Load.
...
This was mainly due to _mouseX, which along with the associated variables was not defined until the first mouse event. This was detected by Valgrind.
svn-id: r55402
2011-01-22 01:07:14 +00:00
David Turner
e8e6df9106
TOON: Fix for Memory Leak during Savegame Loading.
...
svn-id: r55401
2011-01-22 00:00:30 +00:00
David Turner
cb7eb365ae
TOON: Fix Memory Leak when opening Inventory.
...
svn-id: r55400
2011-01-21 23:43:02 +00:00
Sylvain Dupont
f9422fb726
TOON: Bug #3153351 fixed with disappearing Drew
...
Bug #3153351 : "TOON: Drew vanishes when fixing churnatron"
Made sure the scale is never zero.
svn-id: r55399
2011-01-21 23:24:17 +00:00
Sylvain Dupont
8cacde95e7
TOON: Always reset video playback to lowRes when loading new movie
...
svn-id: r55398
2011-01-21 22:56:22 +00:00
Sylvain Dupont
5469aa1687
TOON: Fix double declaration warning
...
Thanks to clone2727 ;)
svn-id: r55396
2011-01-21 22:04:41 +00:00
Sylvain Dupont
d5cb146f4c
TOON: Fix all the glitches in smacker video playback
...
Handle manually 2x scaling when it is needed now.
svn-id: r55393
2011-01-21 20:26:25 +00:00
Arnaud Boutonné
4a94eba80a
TOON: Add mapping for upper 'ç' and for plenking, both used in french version
...
svn-id: r55057
2010-12-28 21:19:31 +00:00
Sylvain Dupont
ab01c8e5fc
TOON: Fixed memory corruption in several rooms
...
Some mask line drawings were writing outside the buffer.
svn-id: r55055
2010-12-28 13:13:55 +00:00
Sylvain Dupont
bccf4606c9
TOON: Removed useless confusing code in conversation process part
...
svn-id: r55054
2010-12-28 13:11:17 +00:00
Sylvain Dupont
1b8678d5de
TOON: Path finding bug fixes
...
Allows Flux to walk close to Drew if really needed to prevent total path block.
Prevents path finding if the character is out of the screen
svn-id: r55051
2010-12-27 21:56:52 +00:00
Sylvain Dupont
f9409fc7d5
TOON: Fixed Bug #3124527 with Dungeon freeze
...
Bug #3089974 : "TOON: Game freezes in act 2 when thrown to the prison"
Wrong pointer increment in conversation process code.
svn-id: r55047
2010-12-26 20:14:04 +00:00
Sylvain Dupont
63e58baae1
TOON: Fix problem when exiting the king cave
...
svn-id: r55042
2010-12-26 14:32:38 +00:00
Matthew Hoops
375f32fbe9
VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointer
...
svn-id: r54927
2010-12-16 01:35:13 +00:00
Max Horn
6edc86a19b
DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
...
svn-id: r54815
2010-12-07 18:54:21 +00:00
Torbjörn Andersson
6b8a3dba70
TOON: Attempt to fix crash when Bricabrac puts on his glasses
...
This was a regression in r54223, and it's the most direct fix I can
think of. The problem seems to be that sys_Cmd_Remove_Scene_Anim()
clears the character's _animationInstance while character::playAnim()
is waiting "for the character to be ready".
My fix was to treat _animationInstance NULL as another sign that the
wait is over, but maybe the real fix is for sys_Cmd_Remove_Scene_Anim()
to do more than just clear the variable, e.g. stop the script or
something like that?
svn-id: r54549
2010-11-28 20:53:57 +00:00
Max Horn
2180b2d6b5
COMMON: Split common/stream.h into several headers
...
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
a72de47d5d
COMMON: Cleanup EventRecorder
...
svn-id: r54355
2010-11-19 00:38:17 +00:00
Sylvain Dupont
db51fb3386
TOON: Fix free/malloc mismatch
...
svn-id: r54224
2010-11-13 02:59:46 +00:00
Sylvain Dupont
a373bd4a53
TOON: Fix more memory leaks
...
Mainly leaks in audio and animations
svn-id: r54223
2010-11-13 02:44:34 +00:00