fix win32 build

This commit is contained in:
ehouse 2008-05-10 21:11:54 +00:00
parent 180de81e58
commit bbd9384a9e

View file

@ -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;