mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
Invalidate color sample after editing it so it'll get redrawn even if
not obscured by editor window.
This commit is contained in:
parent
232551cd14
commit
8d3c951c81
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue