Filippos Karapetis
a297ae6195
PARALLACTION: Add a workaround for the end credits of NS
...
The game scripts try to show a non-existing frame. We set it to an existing one
here. Part of the fixes for bug #5866
2012-09-28 01:49:37 +03:00
Alyssa Milburn
41d337c549
PARALLACTION: Clean up global variables a bit.
2012-09-27 22:41:51 +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
D G Turner
0d3c6fddae
PARALLACTION: Add Graphics Debug Output. Minor Whitespace Fixes.
...
This adds debug output for graphics object access to help with
investigation of bug #2969913 i.e. "NIPPON: Katana graphics not shown
(regression)" as well as cleanup of whitespace in this class.
2011-09-02 06:14:20 +01: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
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
Max Horn
3534cff8ef
ALL: Fix indention (whitespaces -> tabs)
...
svn-id: r53738
2010-10-23 15:46:50 +00:00
Nicola Mettifogo
94cdfefe1c
Fixed clipping when drawing sprites at small scale factors (this fixes the balloon scene).
...
svn-id: r49621
2010-06-13 06:56:13 +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
5fccc0f98d
* Final version of the IFF parsing code.
...
* Refactored ILBMDecoder usage from disk code.
svn-id: r41458
2009-06-12 05:03:18 +00:00
Nicola Mettifogo
71f42a9549
Fully implemented scrolling.
...
svn-id: r39622
2009-03-23 00:56:05 +00:00
Travis Howell
e486374152
Fix crash regression in the Amiga BRA demo, by checking if mask buffer exists, before using it.
...
svn-id: r39418
2009-03-15 13:28:20 +00:00
Nicola Mettifogo
82e1d15aef
Added missing initializations.
...
svn-id: r39407
2009-03-15 04:29:26 +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
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
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
f32f4e5cec
Another change I forgot to do in revision 35447.
...
svn-id: r35619
2008-12-30 05:14:27 +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
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
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
Nicola Mettifogo
c2089be660
* Split up blt routine (there is room for a ton of improvements)
...
* Added scaling as a new blt option
* Activated scaling for the main character in BRA
svn-id: r33985
2008-08-18 07:12:05 +00:00
Nicola Mettifogo
591973c827
Changed Gfx::_backgroundInfo to be a pointer. This temporarily kills all z-buffering.
...
svn-id: r33468
2008-07-31 12:26:12 +00:00
Nicola Mettifogo
8bdbbaf413
Reordered initialization lists to silence warning.
...
svn-id: r33432
2008-07-30 06:25:17 +00:00
Nicola Mettifogo
884b753c73
Added dialogue text rendering for BRA.
...
svn-id: r33402
2008-07-29 09:44:05 +00:00
Nicola Mettifogo
356adc5e09
Added support for text in BRA DOS demo.
...
svn-id: r33360
2008-07-28 08:25:52 +00:00
Travis Howell
533dbfd756
Add basic support for running Amiga and PC demos of BRA.
...
svn-id: r33357
2008-07-28 07:20:55 +00:00
Nicola Mettifogo
551f6d71c3
Made frame unpacking buffer dynamic (this frees some BSS space).
...
svn-id: r33072
2008-07-15 10:59:58 +00:00
Nicola Mettifogo
18b48c74a9
Fixed regression introduced with GfxObj: the character sprite was sometimes removed from the rendering list.
...
svn-id: r32974
2008-07-09 10:52:46 +00:00
Nicola Mettifogo
a294d22213
Added a couple of NULLity checks.
...
svn-id: r32972
2008-07-09 02:49:20 +00:00
Nicola Mettifogo
59e672ef40
Changed balloons to use GfxObj as well. Next step is to integrate balloons for BRA.
...
svn-id: r32883
2008-07-03 10:31:25 +00:00
Nicola Mettifogo
77a60673ef
- Changed labels to be GfxObj's, thus removing the Label object altogether.
...
- Changed Item's to be almost GfxObj's, since ownership and destruction of underlying resource is an issue here (got to think some more about it).
svn-id: r32873
2008-07-02 01:41:08 +00:00
Nicola Mettifogo
2779b851ab
Small cleanup/shuffling of Gfx code.
...
svn-id: r32847
2008-06-30 01:36:50 +00:00
Nicola Mettifogo
206485ffc6
Merged the three render lists (for animations, doors and objects) into a single one.
...
svn-id: r32834
2008-06-29 09:56:44 +00:00
Nicola Mettifogo
d8645297cd
Changed all remaining code to use the GfxObj class to keep frames data. This allows for more uniform processing during rendering, and also fixes the display of dialogue faces for BRA.
...
svn-id: r32833
2008-06-29 09:30:32 +00:00
Nicola Mettifogo
58d58d5100
Implemented scroll command and added a couple more debug variables.
...
svn-id: r30814
2008-02-07 12:49:46 +00:00
Nicola Mettifogo
c561a9487c
Animations are now displayed in the right spots in BRA.
...
svn-id: r30756
2008-02-03 10:53:42 +00:00
Nicola Mettifogo
748a90ca23
Added code to unpack and render animations in BRA.
...
svn-id: r30755
2008-02-03 10:48:07 +00:00
Filippos Karapetis
f2a16e4f56
Changed the parameter types of setFlags() and clearFlags() to match their definitions
...
svn-id: r30711
2008-01-30 23:12:51 +00:00
Johannes Schickel
d8e1f5a060
- make Common::sort supporting a function object to compare two entries instead of operator <
...
- adapt parallaction to use the new Common::sort function
svn-id: r30692
2008-01-28 22:05:23 +00:00
Nicola Mettifogo
3c2c16c705
Fixed animation sorting: everything should be drawn like before revision 30673 now. Character may still disappear when changing location because of wrong resource management, though.
...
svn-id: r30680
2008-01-28 16:52:41 +00:00
Max Horn
1bba7bd04e
Fix 'member var shadowed' warning
...
svn-id: r30679
2008-01-28 15:20:47 +00:00
Nicola Mettifogo
cce8e25960
Removed all job routines. Stubs have been left for future reference in the code for BRA.
...
svn-id: r30675
2008-01-28 13:10:49 +00:00
Nicola Mettifogo
1888cbe50b
Oops. Forgot ScummVM header in new source file.
...
svn-id: r30674
2008-01-28 12:31:14 +00:00
Nicola Mettifogo
be2c5d3c87
All interactive objects are now drawn in the framebuffer instead of using the old kBitBack/kBitFront buffers. Animation are not sorted yet, so they can overlap in an inconsistent fashion for the time being.
...
svn-id: r30673
2008-01-28 12:20:53 +00:00