From 47291e0afee99ec3186a2e9f1d4f94e9ec800fcf Mon Sep 17 00:00:00 2001 From: damien Date: Thu, 20 Sep 2001 12:02:15 +0000 Subject: text positionning --- perl-install/mouse.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/mouse.pm') diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm index 4a3753d6e..d6778b902 100644 --- a/perl-install/mouse.pm +++ b/perl-install/mouse.pm @@ -473,7 +473,7 @@ sub test_mouse { my ($t, $y) = @_; my $font = $darea->style->font; my $w = $font->string_width($t); - $darea->window->draw_string($font, $darea->style->black_gc, ($width - $w) / 2, $y, $t); + $darea->window->draw_string($font, $darea->style->black_gc, ($darea->allocation->[2]-$width)/2 + ($width - $w) / 2, ($darea->allocation->[3]-$height)/2 + $y, $t); }; my $drawarea; $drawarea = sub { $darea->window->draw_pixmap ($darea->style->bg_gc('normal'), $image, 0, 0, -- cgit v1.2.1