Changeset - r20466:7cfc8f237e18
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-06-27 15:22:19
rubidium@openttd.org
(svn r25481) -Fix [FS#5620]: when the font size and colour change directly after eachother in a string, the latter isn't taken into account
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/gfx_layout.cpp
Show inline comments
 
@@ -420,8 +420,10 @@ Layouter::Layouter(const char *str, int 
 

	
 
		if (!this->fonts.Contains(buff - this->buffer)) {
 
			this->fonts.Insert(buff - this->buffer, f);
 
			f = new Font(fontsize, cur_colour);
 
		} else {
 
			delete f;
 
		}
 
		f = new Font(fontsize, cur_colour);
 
	}
 

	
 
	/* Better safe than sorry. */
0 comments (0 inline, 0 general)