From 0af1d66d2d972b2ff52a5cee3f3a4c58a20c0e16 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sat, 31 Oct 2009 20:56:14 +0000 Subject: SCI/newgui: added portrait data layout as comment (not completely done) svn-id: r45585 --- engines/sci/gui/gui_portrait.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'engines/sci/gui') 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 -- cgit v1.2.3