mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
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:
parent
e399a7b755
commit
a370f67fd0
1 changed files with 4 additions and 1 deletions
|
@ -775,7 +775,7 @@ palm_draw_drawTrayDivider( DrawCtx* p_dctx, const XP_Rect* rect,
|
||||||
PalmDrawCtx* dctx = (PalmDrawCtx*)p_dctx;
|
PalmDrawCtx* dctx = (PalmDrawCtx*)p_dctx;
|
||||||
XP_Rect lRect = *rect;
|
XP_Rect lRect = *rect;
|
||||||
XP_Bool selected = (flags & CELL_HIGHLIGHT) != 0;
|
XP_Bool selected = (flags & CELL_HIGHLIGHT) != 0;
|
||||||
XP_Bool cursor = (flags & CELL_ISCURSOR) != 0;
|
XP_Bool cursor = TREAT_AS_CURSOR(dctx, flags);
|
||||||
|
|
||||||
if ( cursor ) {
|
if ( cursor ) {
|
||||||
(void)WinSetBackColor( dctx->drawingPrefs->drawColors[COLOR_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.left;
|
||||||
--lRect.width;
|
--lRect.width;
|
||||||
|
if ( cursor ) {
|
||||||
|
insetRect( &lRect, 2 );
|
||||||
|
}
|
||||||
|
|
||||||
if ( selected ) {
|
if ( selected ) {
|
||||||
short pattern[] = { 0xFF00, 0xFF00, 0xFF00, 0xFF00 };
|
short pattern[] = { 0xFF00, 0xFF00, 0xFF00, 0xFF00 };
|
||||||
|
|
Loading…
Add table
Reference in a new issue