diff --git a/xwords4/wince/ceclrsel.c b/xwords4/wince/ceclrsel.c index e54d4c27d..186c7baf4 100644 --- a/xwords4/wince/ceclrsel.c +++ b/xwords4/wince/ceclrsel.c @@ -296,7 +296,7 @@ initColorData( ColorsDlgState* cState ) cState->colors[i] = ref; cState->brushes[i] = CreateSolidBrush( ref ); cState->buttons[i] = button; - EnableWindow( button, FALSE ); + EnableWindow( button, FALSE ); /* sample, so disable */ } } /* initColorData */ @@ -336,8 +336,7 @@ wrapChooseColor( ColorsDlgState* cState, XP_U16 button ) cState->colors[index] = clrref; DeleteObject( cState->brushes[index] ); cState->brushes[index] = CreateSolidBrush( clrref ); - XP_LOGF( "%s: may need to invalidate the button since " - "color's changed", __func__ ); + InvalidateRect( cState->buttons[index], NULL, TRUE ); } #else CHOOSECOLOR ccs; @@ -365,6 +364,7 @@ wrapChooseColor( ColorsDlgState* cState, XP_U16 button ) cState->colors[index] = ccs.rgbResult; DeleteObject( cState->brushes[index] ); cState->brushes[index] = CreateSolidBrush( ccs.rgbResult ); + InvalidateRect( cState->buttons[index], NULL, TRUE ); } #endif handled = XP_TRUE;