mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
beta 2; redraw focus ring after redrawing tray buttons; move board
focus border so it coincides with regular border.
This commit is contained in:
parent
f1380a6a70
commit
68e2f821d6
3 changed files with 27 additions and 28 deletions
|
@ -1,6 +1,6 @@
|
||||||
/* -*-mode: C; fill-column: 77; c-basic-offset: 4; compile-command: "make ARCH=68K_ONLY MEMDEBUG=TRUE";-*- */
|
/* -*-mode: C; fill-column: 77; c-basic-offset: 4; compile-command: "make ARCH=68K_ONLY MEMDEBUG=TRUE";-*- */
|
||||||
/*
|
/*
|
||||||
* Copyright 1999 - 2001 by Eric House (xwords@eehouse.org). All rights reserved.
|
* Copyright 1999 - 2006 by Eric House (xwords@eehouse.org). All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -136,30 +136,6 @@ bitmapInRect( PalmDrawCtx* dctx, Int16 resID, const XP_Rect* rectP )
|
||||||
drawBitmapAt( (DrawCtx*)dctx, resID, left, top );
|
drawBitmapAt( (DrawCtx*)dctx, resID, left, top );
|
||||||
} /* bitmapInRect */
|
} /* bitmapInRect */
|
||||||
|
|
||||||
#ifdef KEYBOARD_NAV
|
|
||||||
#ifdef XWFEATURE_FIVEWAY
|
|
||||||
static void
|
|
||||||
drawFocusRect( PalmDrawCtx* dctx, const XP_Rect* rect )
|
|
||||||
{
|
|
||||||
XP_Rect r;
|
|
||||||
XP_U16 i;
|
|
||||||
IndexedColorType oldColor;
|
|
||||||
|
|
||||||
oldColor = WinSetForeColor( dctx->drawingPrefs->drawColors[COLOR_CURSOR] );
|
|
||||||
r = *rect;
|
|
||||||
|
|
||||||
insetRect( &r, 1 );
|
|
||||||
for ( i = 0; i < 6; ++i ) {
|
|
||||||
insetRect( &r, 1 );
|
|
||||||
WinDrawRectangleFrame(rectangleFrame, (RectangleType*)&r );
|
|
||||||
}
|
|
||||||
(void)WinSetForeColor( oldColor );
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
# define drawFocusRect( a, b )
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
# define BMP_WIDTH 16
|
# define BMP_WIDTH 16
|
||||||
# define BMP_HT 16
|
# define BMP_HT 16
|
||||||
|
|
||||||
|
@ -301,7 +277,23 @@ palm_draw_objFinished( DrawCtx* p_dctx, BoardObjectType typ,
|
||||||
#ifdef XWFEATURE_FIVEWAY
|
#ifdef XWFEATURE_FIVEWAY
|
||||||
PalmAppGlobals* globals = dctx->globals;
|
PalmAppGlobals* globals = dctx->globals;
|
||||||
if ( globals->hasFiveWay && (dfs == DFS_TOP) && (typ == OBJ_BOARD) ) {
|
if ( globals->hasFiveWay && (dfs == DFS_TOP) && (typ == OBJ_BOARD) ) {
|
||||||
drawFocusRect( dctx, rect );
|
XP_Rect r;
|
||||||
|
XP_U16 i;
|
||||||
|
IndexedColorType oldColor;
|
||||||
|
|
||||||
|
oldColor
|
||||||
|
= WinSetForeColor( dctx->drawingPrefs->drawColors[COLOR_CURSOR] );
|
||||||
|
|
||||||
|
r.left = rect->left + 1;
|
||||||
|
r.top = rect->top + 1;
|
||||||
|
r.width = rect->width - 1;
|
||||||
|
r.height = rect->height - 1;
|
||||||
|
|
||||||
|
for ( i = 0; i < 6; ++i ) {
|
||||||
|
insetRect( &r, 1 );
|
||||||
|
WinDrawRectangleFrame(rectangleFrame, (RectangleType*)&r );
|
||||||
|
}
|
||||||
|
(void)WinSetForeColor( oldColor );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1729,6 +1729,13 @@ drawFormButtons( PalmAppGlobals* globals )
|
||||||
pair += 3;
|
pair += 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef XWFEATURE_FIVEWAY
|
||||||
|
if ( globals->hasFiveWay ) {
|
||||||
|
drawFocusRingOnGadget( XW_MAIN_DONE_BUTTON_ID,
|
||||||
|
XW_MAIN_HIDE_BUTTON_ID );
|
||||||
|
}
|
||||||
|
#endif
|
||||||
} /* drawFormButtons */
|
} /* drawFormButtons */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -425,7 +425,7 @@
|
||||||
#ifdef XWFEATURE_BLUETOOTH
|
#ifdef XWFEATURE_BLUETOOTH
|
||||||
# define XW_PALM_VERSION_STRING "4.3a4"
|
# define XW_PALM_VERSION_STRING "4.3a4"
|
||||||
#else
|
#else
|
||||||
# define XW_PALM_VERSION_STRING "4.2b1"
|
# define XW_PALM_VERSION_STRING "4.2b2"
|
||||||
#endif
|
#endif
|
||||||
#define CUR_PREFS_VERS 0x0405
|
#define CUR_PREFS_VERS 0x0405
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue