Reduced TTF font downscale ratio so that text doesn't ever get cut off with the game's font.
This commit is contained in:
		
							parent
							
								
									c858ed4f29
								
							
						
					
					
						commit
						e1d02e558b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -160,7 +160,7 @@ _TTF_Font *SharedFontState::getFont(std::string family,
 | 
				
			||||||
	// FIXME 0.9 is guesswork at this point
 | 
						// FIXME 0.9 is guesswork at this point
 | 
				
			||||||
//	float gamma = (96.0/45.0)*(5.0/14.0)*(size-5);
 | 
					//	float gamma = (96.0/45.0)*(5.0/14.0)*(size-5);
 | 
				
			||||||
//	font = TTF_OpenFontRW(ops, 1, gamma /** .90*/);
 | 
					//	font = TTF_OpenFontRW(ops, 1, gamma /** .90*/);
 | 
				
			||||||
	font = TTF_OpenFontRW(ops, 1, size* .90);
 | 
						font = TTF_OpenFontRW(ops, 1, size* .80);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!font)
 | 
						if (!font)
 | 
				
			||||||
		throw Exception(Exception::SDLError, "%s", SDL_GetError());
 | 
							throw Exception(Exception::SDLError, "%s", SDL_GetError());
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue