mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
fix win32 build
This commit is contained in:
parent
180de81e58
commit
bbd9384a9e
1 changed files with 12 additions and 10 deletions
|
@ -26,6 +26,8 @@
|
||||||
#include "cedebug.h"
|
#include "cedebug.h"
|
||||||
#include "debhacks.h"
|
#include "debhacks.h"
|
||||||
|
|
||||||
|
static void colorButton( DRAWITEMSTRUCT* dis, HBRUSH brush );
|
||||||
|
|
||||||
#ifdef MY_COLOR_SEL
|
#ifdef MY_COLOR_SEL
|
||||||
|
|
||||||
typedef struct ClrEditDlgState {
|
typedef struct ClrEditDlgState {
|
||||||
|
@ -43,16 +45,6 @@ typedef struct ClrEditDlgState {
|
||||||
XP_Bool cancelled;
|
XP_Bool cancelled;
|
||||||
} ClrEditDlgState;
|
} 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
|
static void
|
||||||
initEditAndSlider( HWND hDlg, XP_U16 sliderID, XP_U8 val )
|
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 */
|
#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 {
|
typedef struct ColorsDlgState {
|
||||||
HWND hDlg;
|
HWND hDlg;
|
||||||
CEAppGlobals* globals;
|
CEAppGlobals* globals;
|
||||||
|
|
Loading…
Add table
Reference in a new issue