No point in drawing spaces
This commit is contained in:
		
							parent
							
								
									ca5f52d93d
								
							
						
					
					
						commit
						d20b652155
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -772,6 +772,9 @@ void Bitmap::drawText(const IntRect &rect, const char *str, int align)
 | 
			
		|||
	if (*str == '\0')
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if (str[0] == ' ' && str[1] == '\0')
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	flush();
 | 
			
		||||
 | 
			
		||||
	TTF_Font *font = p->font->getSdlFont();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue