mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
draw hint rect segments a line at a time to avoid overwriting
blank-marking erasures. Just doing the erasing after doesn't work because it's really a circle and too much shows up.
This commit is contained in:
parent
549b89049c
commit
cd0b87027a
1 changed files with 13 additions and 8 deletions
|
@ -230,23 +230,28 @@ static void
|
||||||
palmDrawHintBorders( XP_Rect* rect, HintAtts hintAtts )
|
palmDrawHintBorders( XP_Rect* rect, HintAtts hintAtts )
|
||||||
{
|
{
|
||||||
XP_Rect frame = *rect;
|
XP_Rect frame = *rect;
|
||||||
|
--frame.width;
|
||||||
|
--frame.height;
|
||||||
|
|
||||||
if ( (hintAtts & HINT_BORDER_LEFT) != 0 ) {
|
if ( (hintAtts & HINT_BORDER_LEFT) != 0 ) {
|
||||||
++frame.left;
|
WinDrawLine( frame.left, frame.top,
|
||||||
--frame.width;
|
frame.left, frame.top + frame.height );
|
||||||
}
|
}
|
||||||
if ( (hintAtts & HINT_BORDER_TOP) != 0 ) {
|
if ( (hintAtts & HINT_BORDER_TOP) != 0 ) {
|
||||||
++frame.top;
|
WinDrawLine( frame.left, frame.top,
|
||||||
--frame.height;
|
frame.left + frame.width, frame.top );
|
||||||
}
|
}
|
||||||
if ( (hintAtts & HINT_BORDER_RIGHT) != 0 ) {
|
if ( (hintAtts & HINT_BORDER_RIGHT) != 0 ) {
|
||||||
--frame.width;
|
WinDrawLine( frame.left + frame.width, frame.top,
|
||||||
|
frame.left + frame.width,
|
||||||
|
frame.top + frame.height );
|
||||||
|
|
||||||
}
|
}
|
||||||
if ( (hintAtts & HINT_BORDER_BOTTOM) != 0 ) {
|
if ( (hintAtts & HINT_BORDER_BOTTOM) != 0 ) {
|
||||||
--frame.height;
|
WinDrawLine( frame.left, frame.top + frame.height,
|
||||||
|
frame.left + frame.width,
|
||||||
|
frame.top + frame.height );
|
||||||
}
|
}
|
||||||
|
|
||||||
WinDrawRectangleFrame( rectangleFrame, (RectangleType*)&frame );
|
|
||||||
} /* palmDrawHintBorders */
|
} /* palmDrawHintBorders */
|
||||||
|
|
||||||
static XP_Bool
|
static XP_Bool
|
||||||
|
|
Loading…
Reference in a new issue