Changeset - r20504:ec88f633ae2b
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-06-30 07:29:31
rubidium@openttd.org
(svn r25525) -Fix: off-by-one in fallback layout w.r.t. colour/font changes
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/gfx_layout.cpp
Show inline comments
 
@@ -307,7 +307,7 @@ ParagraphLayout::Line *ParagraphLayout::
 
	}
 

	
 
	const FontCache *fc = iter->second->fc;
 
	const WChar *next_run = this->buffer_begin + iter->first + 1;
 
	const WChar *next_run = this->buffer_begin + iter->first;
 

	
 
	for (;;) {
 
		WChar c = *this->buffer++;
 
@@ -322,7 +322,7 @@ ParagraphLayout::Line *ParagraphLayout::
 
			iter++;
 
			assert(iter != this->runs.End());
 

	
 
			next_run = this->buffer_begin + iter->first + 1;
 
			next_run = this->buffer_begin + iter->first;
 
			begin = this->buffer;
 

	
 
			last_char = begin;
0 comments (0 inline, 0 general)