Permalink
Browse files

menu aligns to center (horizontally)

  • Loading branch information...
1 parent cf427a3 commit 13c888df21073b10dcd9f873d504896ffeaac525 @garu garu committed Jun 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/SDLx/Widget/Menu.pm
@@ -50,7 +50,7 @@ sub BUILD {
sub _build_font {
my $self = shift;
- my $font = SDLx::Text->new( size => $self->font_size );
+ my $font = SDLx::Text->new( size => $self->font_size, h_align => 'center' );
$font->font( $self->font ) if $self->font;
$self->_font( $font );

0 comments on commit 13c888d

Please sign in to comment.