center letter in tile even when it's too big.

This commit is contained in:
ehouse 2006-05-28 15:04:57 +00:00
parent 35f8004d43
commit 9776c57eea

View file

@ -145,9 +145,7 @@ draw_string_at( GtkDrawCtx* dctx, PangoLayout* layout, const char* str,
switch( just ) { switch( just ) {
case XP_GTK_JUST_CENTER: case XP_GTK_JUST_CENTER:
x += (where->width - width) / 2; x += (where->width - width) / 2;
if ( where->height > height) {
y += (where->height - height) / 2; y += (where->height - height) / 2;
}
break; break;
case XP_GTK_JUST_BOTTOMRIGHT: case XP_GTK_JUST_BOTTOMRIGHT:
x += where->width - width; x += where->width - width;