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.
This commit is contained in:
parent
1b170a1a14
commit
dec47f062e
@ -4067,8 +4067,7 @@ gtk_label_draw (GtkWidget *widget,
|
|||||||
window = gtk_widget_get_window (widget);
|
window = gtk_widget_get_window (widget);
|
||||||
gtk_widget_get_allocation (widget, &allocation);
|
gtk_widget_get_allocation (widget, &allocation);
|
||||||
|
|
||||||
x -= allocation.x;
|
cairo_translate (cr, -allocation.x, -allocation.y);
|
||||||
y -= allocation.y;
|
|
||||||
|
|
||||||
gtk_paint_layout (style,
|
gtk_paint_layout (style,
|
||||||
cr,
|
cr,
|
||||||
|
Loading…
Reference in New Issue
Block a user