[gtk+] label: Fix rendering of rotated labels
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] label: Fix rendering of rotated labels
- Date: Mon, 27 Sep 2010 18:53:37 +0000 (UTC)
commit dec47f062e7655bd56e6e47f94802df8eec87d38
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 27 20:49:39 2010 +0200
label: Fix rendering of rotated labels
gtk_paint_layout is utterly broken. Someone needs to fix it so we use
the cairo_t's matrix and don't juggle with both Pango and cairo matrices
everywhere.
gtk/gtklabel.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 241862f..1f05d05 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4067,8 +4067,7 @@ gtk_label_draw (GtkWidget *widget,
window = gtk_widget_get_window (widget);
gtk_widget_get_allocation (widget, &allocation);
- x -= allocation.x;
- y -= allocation.y;
+ cairo_translate (cr, -allocation.x, -allocation.y);
gtk_paint_layout (style,
cr,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]