(svn r3191) Move declaration and definition of _dbg_screen_rect to a place where it somewhat makes sense and wrap them in #ifdef _DEBUG
This commit is contained in:
		
							
								
								
									
										4
									
								
								gfx.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								gfx.c
									
									
									
									
									
								
							@@ -13,6 +13,10 @@
 | 
				
			|||||||
#include "hal.h"
 | 
					#include "hal.h"
 | 
				
			||||||
#include "variables.h"
 | 
					#include "variables.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef _DEBUG
 | 
				
			||||||
 | 
					bool _dbg_screen_rect;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Colour _cur_palette[256];
 | 
					Colour _cur_palette[256];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void GfxMainBlitter(const Sprite *sprite, int x, int y, int mode);
 | 
					static void GfxMainBlitter(const Sprite *sprite, int x, int y, int mode);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								gfx.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								gfx.h
									
									
									
									
									
								
							@@ -124,4 +124,8 @@ typedef enum StringColorFlags {
 | 
				
			|||||||
	IS_PALETTE_COLOR = 0x100, // color value is already a real palette color index, not an index of a StringColor
 | 
						IS_PALETTE_COLOR = 0x100, // color value is already a real palette color index, not an index of a StringColor
 | 
				
			||||||
} StringColorFlags;
 | 
					} StringColorFlags;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef _DEBUG
 | 
				
			||||||
 | 
					extern bool _dbg_screen_rect;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif /* GFX_H */
 | 
					#endif /* GFX_H */
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								hal.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								hal.h
									
									
									
									
									
								
							@@ -43,7 +43,6 @@ enum DriverType {
 | 
				
			|||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern void GameLoop(void);
 | 
					extern void GameLoop(void);
 | 
				
			||||||
extern bool _dbg_screen_rect;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Deals with finding savegames
 | 
					// Deals with finding savegames
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -61,8 +61,6 @@ extern void SetDifficultyLevel(int mode, GameOptions *gm_opt);
 | 
				
			|||||||
extern void DoStartupNewPlayer(bool is_ai);
 | 
					extern void DoStartupNewPlayer(bool is_ai);
 | 
				
			||||||
extern void ShowOSErrorBox(const char *buf);
 | 
					extern void ShowOSErrorBox(const char *buf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool _dbg_screen_rect;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* TODO: usrerror() for errors which are not of an internal nature but
 | 
					/* TODO: usrerror() for errors which are not of an internal nature but
 | 
				
			||||||
 * caused by the user, i.e. missing files or fatal configuration errors.
 | 
					 * caused by the user, i.e. missing files or fatal configuration errors.
 | 
				
			||||||
 * Post-0.4.0 since Celestar doesn't want this in SVN before. --pasky */
 | 
					 * Post-0.4.0 since Celestar doesn't want this in SVN before. --pasky */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user