Commit Graph

93 Commits

Author SHA1 Message Date
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
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
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
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
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
bccf4606c9 TOON: Removed useless confusing code in conversation process part
svn-id: r55054
2010-12-28 13:11:17 +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
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
a373bd4a53 TOON: Fix more memory leaks
Mainly leaks in audio and animations

svn-id: r54223
2010-11-13 02:44:34 +00:00
Sylvain Dupont
420c2c9ff2 TOON: Fixed menu music leak
svn-id: r54222
2010-11-13 01:37:37 +00:00
Sylvain Dupont
698f4c2b45 TOON: Walk animation improved
Smoothing direction changes. Still needs to be polished though.

svn-id: r54221
2010-11-13 01:15:37 +00:00
Sylvain Dupont
8a4cc14b1a TOON: Fix audio crashs and more memory leaks
svn-id: r54219
2010-11-12 22:31:04 +00:00