diff options
author | Denis Kasak | 2009-06-14 13:32:21 +0000 |
---|---|---|
committer | Denis Kasak | 2009-06-14 13:32:21 +0000 |
commit | 92dd6d5474e4474e51434c3e024bf897cc7d4673 (patch) | |
tree | bbe612a5096cd55c5bdacf8cc136d3da1e927fb1 | |
parent | d6ddbf7062ecd1cf06ea28d194ff3becf60a2c18 (diff) | |
download | scummvm-rg350-92dd6d5474e4474e51434c3e024bf897cc7d4673.tar.gz scummvm-rg350-92dd6d5474e4474e51434c3e024bf897cc7d4673.tar.bz2 scummvm-rg350-92dd6d5474e4474e51434c3e024bf897cc7d4673.zip |
Reworded DraciFont docs (with regards to mentioning ASCII).
svn-id: r41511
-rw-r--r-- | engines/draci/font.cpp | 9 | ||||
-rw-r--r-- | engines/draci/font.h | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/engines/draci/font.cpp b/engines/draci/font.cpp index 19bcbbafbf..72434d9aa0 100644 --- a/engines/draci/font.cpp +++ b/engines/draci/font.cpp @@ -47,9 +47,10 @@ DraciFont::~DraciFont() { * * Loads fonts from a file into a DraciFont instance. The original game uses two * fonts (located inside files "Small.fon" and "Big.fon"). The characters in the - * font are indexed from the ASCII space (decimal value 32) so an appropriate - * offset must be added to convert them to equivalent char values, - * i.e. kDraciIndexOffset. + * font are indexed from the space character so an appropriate offset must be + * added to convert them to equivalent char values, i.e. kDraciIndexOffset. + * Characters in the higher range are non-ASCII and vary between different + * language versions of the game. * * font format: [1 byte] maximum character width * [1 byte] font height @@ -108,7 +109,7 @@ uint8 DraciFont::getCharWidth(uint8 chr) const { * @brief Draw a char to a Graphics::Surface * * @param dst Pointer to the destination surface - * @param chr Character to draw (ASCII value) + * @param chr Character to draw * @param tx Horizontal offset on the surface * @param ty Vertical offset on the surface */ diff --git a/engines/draci/font.h b/engines/draci/font.h index b8c00af391..e222cd5e11 100644 --- a/engines/draci/font.h +++ b/engines/draci/font.h @@ -58,7 +58,9 @@ private: /** Number of glyphs in the font */ static const unsigned int kCharNum = 138; - /** Chars are indexed from the ASCII space (decimal value 32) */ + /** Chars are indexed from the space character so this should be subtracted + * to get the index of a glyph + */ static const unsigned int kCharIndexOffset = 32; /** Internal function for freeing fonts when destructing/loading another */ |