Draw divider smaller when focussed so color shows. Looks like crap,

but better than having focus disappear when on divider.
This commit is contained in:
ehouse 2008-07-18 09:20:20 +00:00
parent fd805791e4
commit 8d6ae9424c

View file

@ -775,7 +775,7 @@ palm_draw_drawTrayDivider( DrawCtx* p_dctx, const XP_Rect* rect,
PalmDrawCtx* dctx = (PalmDrawCtx*)p_dctx;
XP_Rect lRect = *rect;
XP_Bool selected = (flags & CELL_HIGHLIGHT) != 0;
XP_Bool cursor = (flags & CELL_ISCURSOR) != 0;
XP_Bool cursor = TREAT_AS_CURSOR(dctx, flags);
if ( cursor ) {
(void)WinSetBackColor( dctx->drawingPrefs->drawColors[COLOR_CURSOR] );
@ -784,6 +784,9 @@ palm_draw_drawTrayDivider( DrawCtx* p_dctx, const XP_Rect* rect,
++lRect.left;
--lRect.width;
if ( cursor ) {
insetRect( &lRect, 2 );
}
if ( selected ) {
short pattern[] = { 0xFF00, 0xFF00, 0xFF00, 0xFF00 };