Encapsulated drawmode as an enum for type checking

This commit is contained in:
Lorenzo Marcantonio
2012-09-01 15:38:27 +02:00
parent f301b196ab
commit 082d901d60
96 changed files with 234 additions and 170 deletions
+2 -2
View File
@@ -47,7 +47,7 @@
// For draw mode = XOR GR_XOR or GR_NXOR by background color
int g_XorMode = GR_NXOR;
GR_DRAWMODE g_XorMode = GR_NXOR;
// Background color of the design frame
int g_DrawBgColor = WHITE;
@@ -440,7 +440,7 @@ bool GetGRForceBlackPenState( void )
/*************************************/
/* Set the device context draw mode. */
/*************************************/
void GRSetDrawMode( wxDC* DC, int draw_mode )
void GRSetDrawMode( wxDC* DC, GR_DRAWMODE draw_mode )
{
if( draw_mode & GR_OR )
#if defined(__WXMAC__) && (wxMAC_USE_CORE_GRAPHICS || wxCHECK_VERSION( 2, 9, 0 ) )