mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
cleanup
This commit is contained in:
parent
da304002d2
commit
452b3869bd
1 changed files with 18 additions and 21 deletions
|
@ -281,30 +281,27 @@ getSizes( PalmAppGlobals* globals )
|
||||||
static void
|
static void
|
||||||
locateTrayButtons( PalmAppGlobals* globals, XP_U16 trayTop, XP_U16 trayHt )
|
locateTrayButtons( PalmAppGlobals* globals, XP_U16 trayTop, XP_U16 trayHt )
|
||||||
{
|
{
|
||||||
RectangleType rect;
|
if ( FrmGetActiveForm() != NULL ) {
|
||||||
XP_Bool buttonsAtTop, trayAtTop;
|
RectangleType rect;
|
||||||
XP_S16 diff;
|
XP_S16 diff;
|
||||||
|
|
||||||
if ( FrmGetActiveForm() == NULL ) {
|
|
||||||
return XP_FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
getObjectBounds( XW_MAIN_HIDE_BUTTON_ID, &rect );
|
getObjectBounds( XW_MAIN_HIDE_BUTTON_ID, &rect );
|
||||||
diff = trayTop - rect.topLeft.y;
|
diff = trayTop - rect.topLeft.y;
|
||||||
|
|
||||||
if ( diff != 0 ) {
|
if ( diff != 0 ) {
|
||||||
XP_U16 i;
|
XP_U16 i;
|
||||||
XP_U16 ids[] = {XW_MAIN_SHOWTRAY_BUTTON_ID,
|
XP_U16 ids[] = {XW_MAIN_SHOWTRAY_BUTTON_ID,
|
||||||
XW_MAIN_HIDE_BUTTON_ID,
|
XW_MAIN_HIDE_BUTTON_ID,
|
||||||
XW_MAIN_DONE_BUTTON_ID,
|
XW_MAIN_DONE_BUTTON_ID,
|
||||||
XW_MAIN_TRADE_BUTTON_ID,
|
XW_MAIN_TRADE_BUTTON_ID,
|
||||||
XW_MAIN_JUGGLE_BUTTON_ID
|
XW_MAIN_JUGGLE_BUTTON_ID
|
||||||
};
|
};
|
||||||
|
|
||||||
for ( i = 0; i < sizeof(ids)/sizeof(ids[0]); ++i ) {
|
for ( i = 0; i < sizeof(ids)/sizeof(ids[0]); ++i ) {
|
||||||
getObjectBounds( ids[i], &rect );
|
getObjectBounds( ids[i], &rect );
|
||||||
rect.topLeft.y += diff;
|
rect.topLeft.y += diff;
|
||||||
setObjectBounds( ids[i], &rect );
|
setObjectBounds( ids[i], &rect );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} /* locateTrayButtons */
|
} /* locateTrayButtons */
|
||||||
|
|
Loading…
Add table
Reference in a new issue