Forráskód Böngészése

record the number of space before a word.

Gen 10 éve
szülő
commit
6fa342a1b0
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      scene/gui/label.h

+ 2 - 2
scene/gui/label.h

@@ -75,9 +75,9 @@ private:
 		int char_pos; // if -1, then newline
 		int word_len;
 		int pixel_width;
-		bool space_insert;
+		int space_count;
 		WordCache *next;
-		WordCache() { char_pos=0; word_len=0; pixel_width=0; next=0; space_insert=true;}
+		WordCache() { char_pos=0; word_len=0; pixel_width=0; next=0; space_count=0;}
 	};	
 	
 	bool word_cache_dirty;