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
7b9b568148
M4: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
2011-04-17 16:29:11 +02:00
Max Horn
84184aabc0
ALL: colour -> color
2011-04-14 14:12:35 +02:00
D G Turner
10e2cec6b9
M4: Updated for OSystem Palette RGBA->RGB Change.
2011-02-20 03:20:06 +00:00
Max Horn
ab039812e7
COMMON: OSystem now has a PaletteManager
...
svn-id: r55806
2011-02-07 17:52:38 +00:00
Paul Gilbert
e00c17712c
M4: Removed redundant colour index recalculation in palette manager
...
svn-id: r55098
2011-01-03 11:36:39 +00:00
Max Horn
2180b2d6b5
COMMON: Split common/stream.h into several headers
...
svn-id: r54385
2010-11-19 17:03:07 +00:00
Paul Gilbert
0ac1eb82c6
M4: Changed debug calls to debugCN since they all have newlines
...
svn-id: r54047
2010-11-03 09:44:03 +00:00
Max Horn
7cf7b198ad
M4: Remove redundant fflush calls
...
svn-id: r54038
2010-11-02 09:50:14 +00:00
Paul Gilbert
97a0c281eb
M4: Converted all printf's to debug
...
svn-id: r54035
2010-11-02 00:51:12 +00:00
Paul Gilbert
0191f8fd71
M4: Bugfixes for depth ordering to fix the Z order of on-screen objects
...
svn-id: r51239
2010-07-24 08:08:19 +00:00
Paul Gilbert
10e7581fe1
Added support for horizontally flipped foreground sprites, which are indicated by setting the high bit of frame numbers
...
svn-id: r50638
2010-07-04 00:38:16 +00:00
Paul Gilbert
8de5715560
Removed deprecated destAdjust parameters from the frame drawing code
...
svn-id: r50524
2010-06-30 10:17:54 +00:00
Paul Gilbert
0c283ed197
Replaced Y offset from various drawing routines in favour of a viewport sub-surface - this will make it easier to clip sprites to within the drawable area
...
svn-id: r50523
2010-06-30 10:13:20 +00:00
Paul Gilbert
8eb206b6b9
Bugfix to correctly handle transparency when rendering scaled sprites
...
svn-id: r50314
2010-06-26 11:31:04 +00:00
Filippos Karapetis
3cdd841192
Made a warning more verbose
...
svn-id: r50177
2010-06-23 11:32:36 +00:00
Paul Gilbert
fedc060605
Corrected newly added palette conversion warning
...
svn-id: r50176
2010-06-23 11:28:53 +00:00
Filippos Karapetis
3569b49662
Changed some asserts to warnings
...
svn-id: r50175
2010-06-23 11:22:44 +00:00
Paul Gilbert
fcdb7807a4
Implemented explicit transparency index support - the previous hardcoded index of 0 wasn't correct, since some sprites need that index
...
svn-id: r50070
2010-06-20 07:04:58 +00:00
Paul Gilbert
deb907de63
Bugfixes to depth processing that was causing the 'Microprose Design Group' message not to appear in the first intro scene
...
svn-id: r49801
2010-06-15 11:19:32 +00:00
Paul Gilbert
466a151744
Fixes for memory leaks reported by Valgrind
...
svn-id: r49643
2010-06-14 04:20:57 +00:00
Paul Gilbert
277a700e67
Reimplemented the scaled sprite drawing logic. The first introduction sequence scene now displays correctly
...
svn-id: r49604
2010-06-12 11:32:28 +00:00
Paul Gilbert
e572267a05
Bugfixes to correctly scroll the background during animations
...
svn-id: r49596
2010-06-11 11:08:37 +00:00
Paul Gilbert
4d87342847
Added extra code and support methods for properly clearing up backgrounds and used sprites when an animation sequence ends
...
svn-id: r49566
2010-06-10 10:20:25 +00:00
Paul Gilbert
34f7c05e4d
Initial conversion of the AnimviewView class to use the expanded MadsAnimation class, rather than the older AAFile skeleton class
...
svn-id: r49478
2010-06-07 09:19:42 +00:00
Paul Gilbert
26860b8e51
Properly implemented the logic for loading the correct interface background as specified in a scene's resources
...
svn-id: r49409
2010-06-03 10:46:55 +00:00
Paul Gilbert
86dcc28342
Moved the MADS interface view into mads_scene.cpp and did a major cleanup of scene loading code
...
svn-id: r49405
2010-06-03 09:34:32 +00:00
Paul Gilbert
145eacd491
Implemented needed methods for scrolling surfaces horizontally or vertically
...
svn-id: r49286
2010-05-28 10:17:16 +00:00
Paul Gilbert
dd9bf70761
Major work done on the animation and support classes to match the original
...
svn-id: r49150
2010-05-23 07:20:40 +00:00
Ori Avtalion
bfbbc0a072
Remove unused dereference
...
svn-id: r48586
2010-04-08 22:04:17 +00:00
Paul Gilbert
73787f05f0
Bugfixes to the graphics display of dialogs
...
svn-id: r48405
2010-03-26 20:45:32 +00:00
Paul Gilbert
5d85ad0759
Further fixed the setEntry method to make it Endian safe
...
svn-id: r48404
2010-03-26 10:21:08 +00:00
Paul Gilbert
02b1e3278a
Bugfix for logic used to calculate single RGB palette entries
...
svn-id: r48403
2010-03-26 09:35:48 +00:00
Paul Gilbert
77c821249e
Further work on separating M4 specific scene code into the m4_scene.cpp file
...
svn-id: r48256
2010-03-14 05:39:47 +00:00
Paul Gilbert
52c2abba96
Added the beginnings of scene set-up logic
...
svn-id: r48039
2010-02-13 11:49:18 +00:00
Paul Gilbert
3285a4ba4d
Beginnings of a separation of the MADS and M4 engines into separate classes. This will be cleaner then having checks everywhere for whether the game mode is MADS or M4.
...
svn-id: r47705
2010-01-30 09:21:07 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Torbjörn Andersson
428f8d6955
Fixed some cppcheck warnings.
...
svn-id: r47393
2010-01-19 20:41:51 +00:00
Paul Gilbert
d10bb1036e
Implemented the rendering section of dialog display
...
svn-id: r46338
2009-12-12 11:59:38 +00:00
Torbjörn Andersson
22ca0c1e92
Renamed line() to drawLine() to silence warning about function parameters in
...
dialogs.cpp shadowing it. Actually, the function doesn't seem to be used
anywhere at the moment, but perhaps someone has future plans for it?
svn-id: r46331
2009-12-11 17:14:55 +00:00
Max Horn
6d1e4dd034
M4: Rename M4Surface::getData() to getBasePtr() for consistency
...
svn-id: r46279
2009-12-07 18:20:20 +00:00
Max Horn
ac59693be2
A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
...
svn-id: r36127
2009-01-29 05:26:12 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Max Horn
07bcb5179c
Renamed M4Surface::empty() to clear() (two reason: empty is not a verb, and in class String it is used for a bool property)
...
svn-id: r32733
2008-06-18 21:02:52 +00:00
Filippos Karapetis
7ca439f410
Initial import of the work in progress M4 engine
...
svn-id: r31600
2008-04-20 14:47:37 +00:00