Font: Add RGSS2 default values
This commit is contained in:
		
							parent
							
								
									4daff93e29
								
							
						
					
					
						commit
						f0e045d057
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		
							
								
								
									
										12
									
								
								src/font.cpp
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								src/font.cpp
									
										
									
									
									
								
							| 
						 | 
					@ -48,6 +48,14 @@ BUNDLED_FONT_DECL(liberation)
 | 
				
			||||||
#define BNDL_F_D(f) BUNDLED_FONT_D(f)
 | 
					#define BNDL_F_D(f) BUNDLED_FONT_D(f)
 | 
				
			||||||
#define BNDL_F_L(f) BUNDLED_FONT_L(f)
 | 
					#define BNDL_F_L(f) BUNDLED_FONT_L(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef RGSS3
 | 
				
			||||||
 | 
					# define DEF_SHADOW false
 | 
				
			||||||
 | 
					# define DEF_OUTLINE true
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
					# define DEF_SHADOW true
 | 
				
			||||||
 | 
					# define DEF_OUTLINE false
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef std::pair<std::string, int> FontKey;
 | 
					typedef std::pair<std::string, int> FontKey;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static SDL_RWops *openBundledFont()
 | 
					static SDL_RWops *openBundledFont()
 | 
				
			||||||
| 
						 | 
					@ -261,8 +269,8 @@ std::string FontPrivate::defaultName     = "Arial";
 | 
				
			||||||
int         FontPrivate::defaultSize     = 22;
 | 
					int         FontPrivate::defaultSize     = 22;
 | 
				
			||||||
bool        FontPrivate::defaultBold     = false;
 | 
					bool        FontPrivate::defaultBold     = false;
 | 
				
			||||||
bool        FontPrivate::defaultItalic   = false;
 | 
					bool        FontPrivate::defaultItalic   = false;
 | 
				
			||||||
bool        FontPrivate::defaultOutline  = false;
 | 
					bool        FontPrivate::defaultOutline  = DEF_OUTLINE;
 | 
				
			||||||
bool        FontPrivate::defaultShadow   = true;
 | 
					bool        FontPrivate::defaultShadow   = DEF_SHADOW;
 | 
				
			||||||
Color      *FontPrivate::defaultColor    = &FontPrivate::defaultColorTmp;
 | 
					Color      *FontPrivate::defaultColor    = &FontPrivate::defaultColorTmp;
 | 
				
			||||||
Color      *FontPrivate::defaultOutColor = &FontPrivate::defaultOutColorTmp;
 | 
					Color      *FontPrivate::defaultOutColor = &FontPrivate::defaultOutColorTmp;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue