mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
use signed types to avoid overflow and disappearing scores
This commit is contained in:
parent
d0c6e8517b
commit
90dfc15ae9
1 changed files with 4 additions and 4 deletions
|
@ -133,8 +133,8 @@ draw_string_at( GtkDrawCtx* dctx, PangoLayout* layout, const char* str,
|
|||
const XP_Rect* where, XP_GTK_JUST just,
|
||||
const GdkColor* frground, const GdkColor* bkgrnd )
|
||||
{
|
||||
XP_U16 x = where->left;
|
||||
XP_U16 y = where->top;
|
||||
gint x = where->left;
|
||||
gint y = where->top;
|
||||
|
||||
pango_layout_set_text( layout, str, strlen(str) );
|
||||
|
||||
|
@ -586,8 +586,8 @@ gtkDrawDrawRemText( DrawCtx* p_dctx, const XP_Rect* r, XP_U16 nTilesLeft,
|
|||
{
|
||||
GtkDrawCtx* dctx = (GtkDrawCtx*)p_dctx;
|
||||
char buf[10];
|
||||
XP_U16 left = r->left;
|
||||
XP_U16 top = r->top;
|
||||
gint left = r->left;
|
||||
gint top = r->top;
|
||||
XP_Bool draw = !widthP;
|
||||
PangoLayout* layout = dctx->layout[LAYOUT_SMALL];
|
||||
|
||||
|
|
Loading…
Reference in a new issue