diff font/text_stream.cc @ 52:15a18fbe6f21

* Known bugs added to the README * Code cleaning (0 -> NULL when needed, indentation, spaces, ...)
author thib
date Sat, 18 Apr 2009 18:35:39 +0000
parents 658272d883ed
children ddbcbd000206
line wrap: on
line diff
--- a/font/text_stream.cc
+++ b/font/text_stream.cc
@@ -27,8 +27,8 @@
 
 #include "text.h"
 #include "codeconv.h"
-#include<string.h>
-#include<stdio.h>
+#include <string.h>
+#include <stdio.h>
 
 /************************************************************************
 **
@@ -39,12 +39,14 @@
 TextStream::TextStream(void) {
 	kanji_type = euc;
 }
+
 void TextStream::SetSize(double scale) {
 	TextElem elem;
 	elem.type = TextElem::size;
 	elem.impl.Size.scale = scale;
 	container.push_back(elem);
 }
+
 void TextStream::SetColor(unsigned char r, unsigned char g, unsigned char b) {
 	TextElem elem;
 	elem.type = TextElem::color;
@@ -53,6 +55,7 @@ void TextStream::SetColor(unsigned char 
 	elem.impl.Color.b = b;
 	container.push_back(elem);
 }
+
 void TextStream::InsertColor(int begin_pos, int end_pos, unsigned char r, unsigned char g, unsigned char b) {
 	TextElem elem;
 	if (begin_pos < 0) begin_pos = 0;
@@ -83,9 +86,11 @@ void TextStream::InsertColor(int begin_p
 		}
 	}
 }
+
 void TextStream::Clear(void) {
 	container.clear();
 }
+
 void TextStream::Add(const char* str) {
 	TextElem elem;
 	for (; *str; str++) {
@@ -130,12 +135,14 @@ void TextStream::Add(const char* str) {
 		container.push_back(elem);
 	}
 }
+
 void TextStream::AddReturn(void) {
 	TextElem elem;
 	elem.type = TextElem::escape;
 	elem.impl.Escape.type = TextElem::ret;
 	container.push_back(elem);
 }
+
 void TextStream::AddName(const char* str) {
 	TextElem elem;
 	elem.type = TextElem::escape;