mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
center letter in tile even when it's too big.
This commit is contained in:
parent
35f8004d43
commit
9776c57eea
1 changed files with 1 additions and 3 deletions
|
@ -145,9 +145,7 @@ draw_string_at( GtkDrawCtx* dctx, PangoLayout* layout, const char* str,
|
|||
switch( just ) {
|
||||
case XP_GTK_JUST_CENTER:
|
||||
x += (where->width - width) / 2;
|
||||
if ( where->height > height) {
|
||||
y += (where->height - height) / 2;
|
||||
}
|
||||
y += (where->height - height) / 2;
|
||||
break;
|
||||
case XP_GTK_JUST_BOTTOMRIGHT:
|
||||
x += where->width - width;
|
||||
|
|
Loading…
Reference in a new issue