Draw tiles hanging a bit below board when hidden to allow testing of

common case on wince devices.
This commit is contained in:
ehouse 2008-06-07 23:03:47 +00:00
parent c521195554
commit 6cbf62d4f0
2 changed files with 3 additions and 6 deletions

View file

@ -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,

View file

@ -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" );