mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
Draw tiles hanging a bit below board when hidden to allow testing of
common case on wince devices.
This commit is contained in:
parent
6153fc9854
commit
bbfdeb6bf8
2 changed files with 3 additions and 6 deletions
|
@ -602,7 +602,7 @@ gtkDrawTileImpl( DrawCtx* p_dctx, const XP_Rect* rect, const XP_UCHAR* textP,
|
||||||
drawFocusFrame( dctx, rect );
|
drawFocusFrame( dctx, rect );
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* gtk_draw_drawTile */
|
} /* gtkDrawTileImpl */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_draw_drawTile( DrawCtx* p_dctx, const XP_Rect* rect, const XP_UCHAR* textP,
|
gtk_draw_drawTile( DrawCtx* p_dctx, const XP_Rect* rect, const XP_UCHAR* textP,
|
||||||
|
|
|
@ -120,7 +120,7 @@ button_press_event( GtkWidget* XP_UNUSED(widget), GdkEventButton *event,
|
||||||
if ( !globals->mouseDown ) {
|
if ( !globals->mouseDown ) {
|
||||||
globals->mouseDown = XP_TRUE;
|
globals->mouseDown = XP_TRUE;
|
||||||
redraw = board_handlePenDown( globals->cGlobals.game.board,
|
redraw = board_handlePenDown( globals->cGlobals.game.board,
|
||||||
event->x, event->y, &handled );
|
event->x, event->y, &handled );
|
||||||
if ( redraw ) {
|
if ( redraw ) {
|
||||||
board_draw( globals->cGlobals.game.board );
|
board_draw( globals->cGlobals.game.board );
|
||||||
}
|
}
|
||||||
|
@ -493,7 +493,7 @@ configure_event( GtkWidget* widget, GdkEventConfigure* XP_UNUSED(event),
|
||||||
GTK_TIMER_WIDTH, GTK_HOR_SCORE_HEIGHT );
|
GTK_TIMER_WIDTH, GTK_HOR_SCORE_HEIGHT );
|
||||||
|
|
||||||
board_setTrayLoc( globals->cGlobals.game.board, GTK_TRAY_LEFT, trayTop,
|
board_setTrayLoc( globals->cGlobals.game.board, GTK_TRAY_LEFT, trayTop,
|
||||||
hscale * GTK_NUM_COLS, vscale * GTK_TRAY_HT_ROWS,
|
hscale * GTK_NUM_COLS, vscale * GTK_TRAY_HT_ROWS + 10,
|
||||||
GTK_DIVIDER_WIDTH );
|
GTK_DIVIDER_WIDTH );
|
||||||
|
|
||||||
setCtrlsForTray( globals );
|
setCtrlsForTray( globals );
|
||||||
|
@ -1119,9 +1119,6 @@ setCtrlsForTray( GtkAppGlobals* globals )
|
||||||
}
|
}
|
||||||
globals->adjustment->page_size = pageSize;
|
globals->adjustment->page_size = pageSize;
|
||||||
|
|
||||||
XP_LOGF( "%s: set pageSize = %d", __func__,
|
|
||||||
pageSize );
|
|
||||||
|
|
||||||
globals->adjustment->value =
|
globals->adjustment->value =
|
||||||
board_getYOffset( globals->cGlobals.game.board );
|
board_getYOffset( globals->cGlobals.game.board );
|
||||||
gtk_signal_emit_by_name( GTK_OBJECT(globals->adjustment), "changed" );
|
gtk_signal_emit_by_name( GTK_OBJECT(globals->adjustment), "changed" );
|
||||||
|
|
Loading…
Reference in a new issue