[hyena] Windows: Work around album-art flicker (bgo#644311)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Windows: Work around album-art flicker (bgo#644311)
- Date: Wed, 9 Mar 2011 14:59:01 +0000 (UTC)
commit 39ab6a82823107d73c2cabfc9b1c3e16e2c460f9
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Mar 9 08:55:45 2011 -0600
Windows: Work around album-art flicker (bgo#644311)
Hyena.Gui/Hyena.Gui.Canvas/TextBlock.cs | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Gui.Canvas/TextBlock.cs b/Hyena.Gui/Hyena.Gui.Canvas/TextBlock.cs
index 1b8a87c..699463d 100644
--- a/Hyena.Gui/Hyena.Gui.Canvas/TextBlock.cs
+++ b/Hyena.Gui/Hyena.Gui.Canvas/TextBlock.cs
@@ -198,7 +198,14 @@ namespace Hyena.Gui.Canvas
cr.MoveTo (text_alloc.X, text_alloc.Y);
Foreground.Apply (cr);
UpdateLayout (GetText (), RenderSize.Width, RenderSize.Height, true);
- Pango.CairoHelper.ShowLayout (cr, layout);
+ if (Hyena.PlatformDetection.IsWindows) {
+ // FIXME windows; working around some unknown issue with ShowLayout; bgo#644311
+
+ cr.Antialias = Cairo.Antialias.None;
+ PangoCairoHelper.LayoutPath (cr, layout, true);
+ } else {
+ PangoCairoHelper.ShowLayout (cr, layout);
+ }
cr.Fill ();
TooltipMarkup = layout.IsEllipsized ? last_formatted_text : null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]