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
14
xi/xistx.c
14
xi/xistx.c
@ -55,7 +55,12 @@ draw_back_rect( STX_DATA * stxp, XinRect * r )
|
|||||||
if ( stxp->has_focus )
|
if ( stxp->has_focus )
|
||||||
dt.brush.fore_color = stxp->active_back_color;
|
dt.brush.fore_color = stxp->active_back_color;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (stxp->attrib & XI_ATR_ENABLED)
|
||||||
dt.brush.fore_color = stxp->back_color;
|
dt.brush.fore_color = stxp->back_color;
|
||||||
|
else
|
||||||
|
dt.brush.fore_color = stxp->disabled_back_color;
|
||||||
|
}
|
||||||
dt.draw_mode = XinDrawModeCopy;
|
dt.draw_mode = XinDrawModeCopy;
|
||||||
XinWindowDrawToolsSet( stxp->win, &dt );
|
XinWindowDrawToolsSet( stxp->win, &dt );
|
||||||
|
|
||||||
@ -176,16 +181,7 @@ stx_redraw( STX stx, BOOLEAN update )
|
|||||||
|
|
||||||
r = stxp->edit_rect;
|
r = stxp->edit_rect;
|
||||||
xi_text_prect_set( stxp->xi_text, &r );
|
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 );
|
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 );
|
xi_text_draw( stxp->xi_text, 0L, 0L, update );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user