Commit Graph

243 Commits

Author SHA1 Message Date
Matthew Hoops
0031c41db8 COMMON: Change kPlatformPC to kPlatformDOS
"PC" was very ambiguous and now it matches what we show in the GUI.

This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
Alyssa Milburn
41d337c549 PARALLACTION: Clean up global variables a bit. 2012-09-27 22:41:51 +02:00
Johannes Schickel
d98b462190 PARALLACTION: Fix delete[] formatting. 2012-07-25 21:10:43 +02:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Eugene Sandulenko
e1a311a236 PARALLACTION: Fix warnings. Fix nasty out-of-scope bug in parallaction_br.cpp 2011-11-03 00:48:14 +00: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
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
Johannes Schickel
9734c7be64 PARALLACTION: Prefer Surface::create taking a PixelFormat over the one taking a byte depth. 2011-04-17 16:30:12 +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
145b0d83df PARALLACTION: Use signed math in fadeTo.
This fixes corruption during fades when low palette values end up negative.
2011-02-16 16:00:44 +01:00
Johannes Schickel
c44538a01e PARALLACTION: Fix half bright palette.
Thanks to peres for pointing this out to me.
2011-02-16 02:00:00 +01:00
Johannes Schickel
51c8871b9b PARALLACTION: Adapt to setPalette RGBA->RGB change.
This change is not tested, but should hopefully work fine.
2011-02-14 17:08:32 +01:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
David Turner
0f07082a78 PARALLACTION: Improve safety of PathBuffer::getValue().
This will now avoid invalid memory reads and instead emit warnings if it is called with values outside of the expected data buffer or on a NULL buffer.

svn-id: r55492
2011-01-24 01:58:43 +00:00
Nicola Mettifogo
d16eb491b1 Support for vertical scrolling. Patch 3005933 by fuzzie.
svn-id: r49620
2010-06-13 06:55:58 +00:00
Nicola Mettifogo
5f2a88e596 Cleanup (removed more Parallaction::getGameType() calls).
svn-id: r49147
2010-05-22 18:00:16 +00:00
Max Horn
b3e404109c Move initGraphics and initCommonGFX from to new header.
These functions are only used internally be Engine subclasses, and
by moving them to a separate header we can reduce indirect header
dependencies.

svn-id: r48934
2010-05-04 11:58:12 +00:00
Willem Jan Palenstijn
9001a8fbc3 Fix uninitialized variable
svn-id: r48844
2010-04-28 22:33:17 +00:00
Nicola Mettifogo
503ee78008 Initialize _requested*ScrollDir variables in constructor.
svn-id: r48840
2010-04-28 22:16:48 +00:00
Nicola Mettifogo
498d8000ca Fix bug 2969257 (labels) and hopefully plug all the leaks.
svn-id: r48811
2010-04-27 08:59:13 +00:00
Willem Jan Palenstijn
fe51070977 Fix whitespace
svn-id: r48477
2010-04-02 22:14:18 +00:00
Travis Howell
92e788dbb6 Fix pallete for label font in the Amiga version of BRA.
svn-id: r39632
2009-03-23 12:30:47 +00:00
Travis Howell
e48cd66dab Correct label font used by Amiga version of BRA.
svn-id: r39629
2009-03-23 10:07:22 +00:00
Nicola Mettifogo
71f42a9549 Fully implemented scrolling.
svn-id: r39622
2009-03-23 00:56:05 +00:00
Nicola Mettifogo
44906f574f The engine has now to build the drawing list for the graphic department, instead of setting visibility flags; the new field _prog has been added to GfxObj to help sorting the list.
The outcome is that cleaning up unused resources on location switches is now easier to manage, and less error prone.

svn-id: r38928
2009-02-27 08:56:19 +00:00
Nicola Mettifogo
3efffe511b Fixed crashes and leaks when quitting BRA from menu and splash screen.
svn-id: r38893
2009-02-26 09:12:29 +00:00
Nicola Mettifogo
93666ef53c Updated all for(;;) loops to use prefix increment on iterators.
svn-id: r38876
2009-02-25 08:53:58 +00:00
Johannes Schickel
5417f6bacb - Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated).
- Update all client code which relied on OSystem::clearScreen so far.

svn-id: r38304
2009-02-15 21:20:21 +00:00
Nicola Mettifogo
d1b71335d6 Fixed support for walking zones in BRA:
* patches are not applied if the zone is not visible when loading 
* when applying a patch, always overwrite the existing data instead of OR'ing

svn-id: r36209
2009-02-03 10:42:27 +00:00
Nicola Mettifogo
e5d75d1f7b Fixed regression from revision 35765. Mask and path patches were destroyed before getting a chance to be used.
svn-id: r35835
2009-01-12 13:14:09 +00:00
Nicola Mettifogo
4b402e4cd8 Fixed points 2 and 3 of bug #2438549, spotlight wasn't displayed correctly.
svn-id: r35785
2009-01-08 14:12:46 +00:00
Max Horn
e955e0b4c4 Fixed warnings
svn-id: r35780
2009-01-07 23:30:31 +00:00
Nicola Mettifogo
f1ad8b6934 Extended PathBuffer to support BRA.
svn-id: r35766
2009-01-07 08:16:18 +00:00
Nicola Mettifogo
21fae9d029 * moved more mask management to BackgroundInfo
* simplified mask management for client code
* reduced the clutter into graphics.h by moving the implementations of BackgroundInfo, MaskBuffer and PathBuffer to graphics.cpp
* preparation for the full implementation of BRA's PathBuffer

svn-id: r35765
2009-01-07 07:35:11 +00:00
Nicola Mettifogo
2d74085545 Deleted unused declarations, sorted others, and removed some dead code.
svn-id: r35739
2009-01-05 14:07:26 +00:00
Johannes Schickel
45529628e1 Fix for bug #2464538 "PARALLACTION: Compiler error on AmigaOS4",
svn-id: r35533
2008-12-25 00:18:01 +00:00
Nicola Mettifogo
41ebd732f5 Fixed display of location background when changing from a scrollable to a non-scrollable one.
svn-id: r35522
2008-12-24 09:53:00 +00:00
Nicola Mettifogo
6c1dc0c03b Simplified destructions of Balloon objects.
svn-id: r35521
2008-12-24 09:51:07 +00:00
Nicola Mettifogo
e11c17a005 Moved more GfxObj management to Gfx object.
svn-id: r35466
2008-12-21 15:42:47 +00:00
Nicola Mettifogo
025b2a93e9 Moved mask creation/handling to Gfx.
svn-id: r35447
2008-12-20 08:15:09 +00:00
Nicola Mettifogo
c76f0bdb10 Weeded out some more unused code, and some restructuring.
svn-id: r35377
2008-12-15 07:15:29 +00:00
Nicola Mettifogo
dc3e9027f4 Removed references to _vm from the engine itself.
svn-id: r35358
2008-12-14 10:32:26 +00:00
Nicola Mettifogo
5b39775184 Some more restructuring of rendering code.
svn-id: r35343
2008-12-13 17:52:37 +00:00
Nicola Mettifogo
800db6f142 Restructuring of rendering code.
svn-id: r35342
2008-12-13 17:31:48 +00:00
Nicola Mettifogo
db88c544b7 Fixed assorted leaks in Parallaction.
svn-id: r35270
2008-12-07 12:41:50 +00:00
Eugene Sandulenko
00de4b2b3c Fix bug #2401150: "Compiler: No matching function (Parallaction / Amiga)"
svn-id: r35269
2008-12-07 09:21:01 +00:00
Nicola Mettifogo
4c377e0339 Fixed positioning of overlayed graphics (dialogues, inventory, labels) in all locations. These items are now all handled in screen coordinates which are translated automatically by the renderer.
svn-id: r35255
2008-12-06 06:17:10 +00:00
Nicola Mettifogo
7681461b16 Implemented horizontal scrolling for BRA, by using a back buffer. Dialogues in scrollable locations are a bit messed up for the moment.
svn-id: r35253
2008-12-06 04:51:04 +00:00