From 8d6ae9424c134cf065fc4ff9570e4669040569d5 Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 18 Jul 2008 09:20:20 +0000 Subject: [PATCH] Draw divider smaller when focussed so color shows. Looks like crap, but better than having focus disappear when on divider. --- xwords4/palm/palmdraw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xwords4/palm/palmdraw.c b/xwords4/palm/palmdraw.c index 25662e6b3..c47b254a8 100644 --- a/xwords4/palm/palmdraw.c +++ b/xwords4/palm/palmdraw.c @@ -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 };