summaryrefslogtreecommitdiffstats
path: root/lib/mouse.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-11-08 17:38:06 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-11-08 18:17:38 +0100
commit43a802e5cdd7f783907a3e63cd5f0a3ae2f1d434 (patch)
tree516e08e1ef9a931265f02803a9018c0a1a9fff37 /lib/mouse.pm
parentf959a5b33a4da88c0965c5955af7eef3d059737d (diff)
downloaddrakx-kbd-mouse-x11-43a802e5cdd7f783907a3e63cd5f0a3ae2f1d434.tar
drakx-kbd-mouse-x11-43a802e5cdd7f783907a3e63cd5f0a3ae2f1d434.tar.gz
drakx-kbd-mouse-x11-43a802e5cdd7f783907a3e63cd5f0a3ae2f1d434.tar.bz2
drakx-kbd-mouse-x11-43a802e5cdd7f783907a3e63cd5f0a3ae2f1d434.tar.xz
drakx-kbd-mouse-x11-43a802e5cdd7f783907a3e63cd5f0a3ae2f1d434.zip
fix mixup
those parameters are never passed but are variables that are computed below
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);