Corretto il colore dei rettangoli di background e verificate le cose in sospeso
git-svn-id: svn://10.65.10.50/trunk@5772 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
dabe04eb31
commit
a9042029df
20
xi/xistx.c
20
xi/xistx.c
@ -54,8 +54,13 @@ draw_back_rect( STX_DATA * stxp, XinRect * r )
|
||||
dt.brush.pattern = XinBrushSolid;
|
||||
if ( stxp->has_focus )
|
||||
dt.brush.fore_color = stxp->active_back_color;
|
||||
else
|
||||
dt.brush.fore_color = stxp->back_color;
|
||||
else
|
||||
{
|
||||
if (stxp->attrib & XI_ATR_ENABLED)
|
||||
dt.brush.fore_color = stxp->back_color;
|
||||
else
|
||||
dt.brush.fore_color = stxp->disabled_back_color;
|
||||
}
|
||||
dt.draw_mode = XinDrawModeCopy;
|
||||
XinWindowDrawToolsSet( stxp->win, &dt );
|
||||
|
||||
@ -174,18 +179,9 @@ stx_redraw( STX stx, BOOLEAN update )
|
||||
{
|
||||
XinRect r;
|
||||
|
||||
r = stxp->edit_rect;
|
||||
r = stxp->edit_rect;
|
||||
xi_text_prect_set( stxp->xi_text, &r );
|
||||
/* verificare la correttezza ede ventualmente ricorreggere
|
||||
const int old_bottom = rct.bottom;
|
||||
get_text_rect(stx, &rct);
|
||||
rct.bottom = old_bottom;
|
||||
|
||||
xi_draw_clipped_text(stxp->win, stxp->text, &rct, &rct, stxp->attrib,
|
||||
TRUE, 0, -1);
|
||||
*/
|
||||
xi_text_clip_set( stxp->xi_text, &r );
|
||||
// verificare se corr eventualmente mettere XinWindowTextOpaqueSet( stxp->win, FALSE );
|
||||
|
||||
xi_text_draw( stxp->xi_text, 0L, 0L, update );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user