From 4d25009fcabfe79872a14866193984128e001748 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 31 Oct 2016 17:02:16 +0100 Subject: switch from draw_layout() to using Pango::Cairo --- control-center | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control-center b/control-center index 652cb311..6ef59255 100755 --- a/control-center +++ b/control-center @@ -1068,8 +1068,8 @@ $wait_darea->signal_connect(draw => sub { $w->{text_xx} = $w->{pix_xx} + $w->{pix_height} + 5; } $pixbuf->render_to_drawable($w->get_window, $w->get_style->fg_gc('normal'), 0, 0, $w->{pix_yy}, $w->{pix_xx}, $w->{pix_width}, $w->{pix_height}, 'normal', 0, 0); - my $style = $wait_darea->{style} ||= $wait_darea->get_style; - $wait_darea->get_window->draw_layout($style->text_gc('normal'), $w->{text_yy}, $w->{text_xx}, $w->{layout}); + $cr->move_to($w->{text_yy}, $w->{text_xx}); + Pango::Cairo::show_layout($cr, $w->{layout}); $run_counter += $run_counter_add; $run_counter_add = -$run_counter_add if $run_counter < 100 || 255-$run_counter_add < $run_counter; }); -- cgit v1.2.1