Commit Graph

185 Commits

Author SHA1 Message Date
Eugene Sandulenko
913e15db58 Merge pull request #56 from zeldin/toon-path-dynamic
TOON: Grow size of path finding heap dynamically
2011-08-14 05:23:01 -07:00
Christoph Mallon
e35b4f20c1 GRAPHICS: Simplify the interface of Graphics::loadThumbnail().
Now it returns the Surface, so the caller does not need to create one and pass it.
2011-08-07 15:19:09 +02:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Marcus Comstedt
a7e49f2945 TOON: Grow size of path finding heap dynamically 2011-07-21 15:00:04 +02:00
Marcus Comstedt
e4427fd589 TOON: Fix off-by-one use of path heap array
The first element of the _data array in PathFindingHeap was never
used, fix that.
2011-07-21 13:09:18 +02:00
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