aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-31 20:56:14 +0000
committerMartin Kiewitz2009-10-31 20:56:14 +0000
commit0af1d66d2d972b2ff52a5cee3f3a4c58a20c0e16 (patch)
tree5c69e5f45d65a58cc1a88d643aa7b365e77467da
parenta510481202670fb9d579faff3d3b26099777e02c (diff)
downloadscummvm-rg350-0af1d66d2d972b2ff52a5cee3f3a4c58a20c0e16.tar.gz
scummvm-rg350-0af1d66d2d972b2ff52a5cee3f3a4c58a20c0e16.tar.bz2
scummvm-rg350-0af1d66d2d972b2ff52a5cee3f3a4c58a20c0e16.zip
SCI/newgui: added portrait data layout as comment (not completely done)
svn-id: r45585
-rw-r--r--engines/sci/gui/gui_portrait.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/sci/gui/gui_portrait.cpp b/engines/sci/gui/gui_portrait.cpp
index df45f4dd19..09eba8a24d 100644
--- a/engines/sci/gui/gui_portrait.cpp
+++ b/engines/sci/gui/gui_portrait.cpp
@@ -45,7 +45,22 @@ SciGuiPortrait::~SciGuiPortrait() {
void SciGuiPortrait::init() {
// .BIN files are loaded from actors directory and from .\ directory
- // seem to have 98 byte header
+ // header:
+ // 3 bytes "WIN"
+ // 2 bytes main height (should be the same as first bitmap header height)
+ // 2 bytes main width (should be the same as first bitmap header width)
+ // 2 bytes animation count
+ // 2 bytes unknown
+ // 2 bytes unknown
+ // 4 bytes paletteSize (base 1)
+ // paletteSize bytes paletteData
+ // 14 bytes bitmap header
+ // -> 4 bytes unknown
+ // -> 2 bytes height
+ // -> 2 bytes width
+ // -> 6 bytes unknown
+ // height * width bitmap data
+ // another animation count times bitmap header and data
}
} // End of namespace Sci