[Scummvm-cvs-logs] SF.net SVN: scummvm:[41511] scummvm/branches/gsoc2009-draci/engines/draci

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Sun Jun 14 15:32:21 CEST 2009


Revision: 41511
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41511&view=rev
Author:   dkasak13
Date:     2009-06-14 13:32:21 +0000 (Sun, 14 Jun 2009)

Log Message:
-----------
Reworded DraciFont docs (with regards to mentioning ASCII).

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/font.cpp
    scummvm/branches/gsoc2009-draci/engines/draci/font.h

Modified: scummvm/branches/gsoc2009-draci/engines/draci/font.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/font.cpp	2009-06-14 13:10:12 UTC (rev 41510)
+++ scummvm/branches/gsoc2009-draci/engines/draci/font.cpp	2009-06-14 13:32:21 UTC (rev 41511)
@@ -47,9 +47,10 @@
  *
  * 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 @@
  * @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
  */

Modified: scummvm/branches/gsoc2009-draci/engines/draci/font.h
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/font.h	2009-06-14 13:10:12 UTC (rev 41510)
+++ scummvm/branches/gsoc2009-draci/engines/draci/font.h	2009-06-14 13:32:21 UTC (rev 41511)
@@ -58,7 +58,9 @@
 	/** 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 */


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