Commit Graph

112 Commits

Author SHA1 Message Date
Strangerke
34ded75f40 TOON: Fix Uninitialized scalar variable CID 1003172, 1003173, 1003175, 1003176 2013-04-27 11:19:05 +02:00
Matthew Hoops
a652f6669e VIDEO: Rewrite SmackerDecoder to use the new API 2012-07-23 21:04:51 -04:00
D G Turner
cfe7bf614b TOON: Remove unecessary getSystem() function.
This was needed due to the unecessary protected shadow variable
hiding the Engine superclass _system member variable.
2012-07-07 14:37:15 +01:00
D G Turner
78b8ca5c7f TOON: Replace remaining int32 x,y,w and h coordinates with int16. 2012-06-28 07:07:08 +01:00
D G Turner
57d34d2576 Merge branch 'toon-RAM-reduction' 2012-06-14 17:45:30 +01:00
D G Turner
5458127d97 TOON: Migrate Pathfinding API x,y coordinates to int16.
This harmonises the usage with Common::Point.
2012-06-10 16:00:26 +01:00
Johannes Schickel
7c5cf1b400 GUI: Add helper to SaveLoadChooser, which uses the currently active target.
This reduces the code duplication in all client code, which formerly duplicated
the querying of the plugin, game id etc. and now simply calls the newly added
method runModalWithCurrentTarget() on a SaveLoadChooser object.
2012-06-10 04:53:17 +02:00
Johannes Schickel
15046a7529 GUI: Get rid of SaveLoadChooser::setSaveMode.
We already pass the title and process button name to the constructor of
SaveLoadChooser and then do not offer any way of changing it, thus changing
the edit mode of the chooser is kind of pointless and was never actually used.
Instead we pass the mode on SaveLoadChooser construction now.
2012-06-10 04:19:45 +02:00
D G Turner
70f09e4ee3 TOON: Reduce unecessary linkages in Pathfinding class. 2012-06-07 13:50:24 +01:00
D G Turner
6cda28adc9 TOON: Remove unecessary usages of g_system. 2012-06-07 13:20:53 +01:00
sylvaintv
24e50eb218 TOON: Fix bug #3467139 with russian version crash
Bug #3467139: "TOON: Russian Version Crashes"
A frame is corrupted in an localized animation
Moved the check before the Rect creation.
2012-02-12 23:18:40 +01:00
D G Turner
c619b8d981 TOON: Replace usage of 'goto'. 2011-12-08 03:10:17 +00:00
Willem Jan Palenstijn
f9ad14dc2d TOON: Clean up Common::String usage
Thanks to Sylvain for testing.
2011-11-27 00:53:39 +01:00
sylvaintv
dedbfb836a TOON: Fix Flux jumpy animation when imprisoned
Idle animation was reset every frame when changing facing point.
Fix also Drew description when right-clicking on Flux
2011-10-07 01:10:51 +02:00
Strangerke
b60a706751 JANITORIAL: Fix some formatting glitches in gob, hugo and toon 2011-09-08 07:55:40 +02: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
eriktorbjorn
4b51bef7ae TOON: Add delay to inventory rendering loop. Uses a bit less CPU now. 2011-06-27 21:48:00 +02: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
95bfa81168 TOON: Reduce header dependencies 2011-06-10 22:15:47 +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
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
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
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
a383fe452f TOON: Fix palette issues in alligators scene
Bug #3264989: "TOON: Palette problems"
2011-04-17 14:18:29 +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
bc73a6bd76 TOON: Fix global package loading 2011-03-06 17:52:39 +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
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
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
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