From 43a802e5cdd7f783907a3e63cd5f0a3ae2f1d434 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 8 Nov 2016 17:38:06 +0100 Subject: fix mixup those parameters are never passed but are variables that are computed below --- lib/mouse.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/mouse.pm') diff --git a/lib/mouse.pm b/lib/mouse.pm index c6d8cc5..540c3f2 100644 --- a/lib/mouse.pm +++ b/lib/mouse.pm @@ -544,9 +544,9 @@ sub test_mouse { $layout); }; my $draw_pixbuf = sub { - my ($p, $x, $y, $w, $h) = @_; - $w = $p->get_allocated_width; - $h = $p->get_allocated_height; + my ($p, $x, $y) = @_; + my $w = $p->get_allocated_width; + my $h = $p->get_allocated_height; $p->render_to_drawable($darea->get_window, $darea->get_style->bg_gc('normal'), 0, 0, ($darea->get_allocation->width-$width)/2 + $x, ($darea->get_allocation->height-$height)/2 + $y, $w, $h, 'none', 0, 0); -- cgit v1.2.1