Font: Fix 'Font#set_name' not actually changing underlying TTF_Font
This commit is contained in:
		
							parent
							
								
									78f9272e3d
								
							
						
					
					
						commit
						857693d4a1
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -210,7 +210,11 @@ const char *Font::getName() const
 | 
			
		|||
 | 
			
		||||
void Font::setName(const char *value)
 | 
			
		||||
{
 | 
			
		||||
	if (p->name == value)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	p->name = value;
 | 
			
		||||
	p->sdlFont = shState->fontPool().request(value, p->size);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Font::setSize(int value)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue