diff --git a/xwords4/wince/ceclrsel.c b/xwords4/wince/ceclrsel.c index 7180cd5a2..9957c3c57 100644 --- a/xwords4/wince/ceclrsel.c +++ b/xwords4/wince/ceclrsel.c @@ -26,6 +26,8 @@ #include "cedebug.h" #include "debhacks.h" +static void colorButton( DRAWITEMSTRUCT* dis, HBRUSH brush ); + #ifdef MY_COLOR_SEL typedef struct ClrEditDlgState { @@ -43,16 +45,6 @@ typedef struct ClrEditDlgState { XP_Bool cancelled; } ClrEditDlgState; -static void -colorButton( DRAWITEMSTRUCT* dis, HBRUSH brush ) -{ - RECT rect = dis->rcItem; - - Rectangle( dis->hDC, rect.left, rect.top, rect.right, rect.bottom ); - InsetRect( &rect, 1, 1 ); - FillRect( dis->hDC, &rect, brush ); -} - static void initEditAndSlider( HWND hDlg, XP_U16 sliderID, XP_U8 val ) { @@ -264,6 +256,16 @@ myChooseColor( CEAppGlobals* globals, HWND parent, XP_U16 labelID, #endif /* MY_COLOR_SEL */ +static void +colorButton( DRAWITEMSTRUCT* dis, HBRUSH brush ) +{ + RECT rect = dis->rcItem; + + Rectangle( dis->hDC, rect.left, rect.top, rect.right, rect.bottom ); + InsetRect( &rect, 1, 1 ); + FillRect( dis->hDC, &rect, brush ); +} + typedef struct ColorsDlgState { HWND hDlg; CEAppGlobals* globals;