summaryrefslogtreecommitdiffstats
path: root/lib/mouse.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mouse.pm')
-rw-r--r--lib/mouse.pm6
1 files changed, 3 insertions, 3 deletions
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);