Commit Graph

27 Commits

Author SHA1 Message Date
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