[Scummvm-cvs-logs] SF.net SVN: scummvm:[45585] scummvm/trunk/engines/sci/gui/gui_portrait.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Sat Oct 31 21:56:17 CET 2009
Revision: 45585
http://scummvm.svn.sourceforge.net/scummvm/?rev=45585&view=rev
Author: m_kiewitz
Date: 2009-10-31 20:56:14 +0000 (Sat, 31 Oct 2009)
Log Message:
-----------
SCI/newgui: added portrait data layout as comment (not completely done)
Modified Paths:
--------------
scummvm/trunk/engines/sci/gui/gui_portrait.cpp
Modified: scummvm/trunk/engines/sci/gui/gui_portrait.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_portrait.cpp 2009-10-31 20:00:50 UTC (rev 45584)
+++ scummvm/trunk/engines/sci/gui/gui_portrait.cpp 2009-10-31 20:56:14 UTC (rev 45585)
@@ -45,7 +45,22 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list