summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrol-center4
1 files changed, 2 insertions, 2 deletions
diff --git a/control-center b/control-center
index 10cfd3d4..f154efc6 100755
--- a/control-center
+++ b/control-center
@@ -1070,7 +1070,7 @@ $wait_darea->signal_connect(expose_event => sub {
$wait_darea->{first_expose} = 1;
my $size = $wait_darea->{size};
my ($d_width, $d_height) = ($size->width, $size->height);
- ($w->{pix_width}, $w->{pix_height}) = ($pixbuf->get_width, $pixbuf->get_height);
+ ($w->{pix_width}, $w->{pix_height}) = ($pixbuf->get_allocated_width, $pixbuf->get_height);
my ($txt_width, $txt_height) = $wait_darea->{layout}->get_pixel_size;
$w->{pix_yy} = ($d_width - $w->{pix_width})/2;
$w->{pix_xx} = ($d_height - $w->{pix_height} - $txt_height)/2;
@@ -1563,7 +1563,7 @@ sub render_shiner {
sub scale {
my ($pixbuf, $gain) = @_;
- my ($width, $height) = ($pixbuf->get_height, $pixbuf->get_width);
+ my ($width, $height) = ($pixbuf->get_height, $pixbuf->get_allocated_width);
$pixbuf->scale_simple($height+$gain, $width+$gain, 'hyper');
}