diff options
author | Sergey V. Udaltsov <svu@src.gnome.org> | 2007-02-04 01:29:45 +0000 |
---|---|---|
committer | Sergey V. Udaltsov <svu@src.gnome.org> | 2007-02-04 01:29:45 +0000 |
commit | fa585dbf1347b04aaf2b6afdfb63510c99ffc254 (patch) | |
tree | ded53c5eac795df2719a2c40d83ea65ee2b4edad /libgnomekbd/gkbd-keyboard-drawing.c | |
parent | 974b75d5a8de06497daa149d41f2d375b12292ea (diff) | |
download | libgnomekbd-fa585dbf1347b04aaf2b6afdfb63510c99ffc254.tar.gz |
no unneeded text rotation
svn path=/trunk/; revision=31
Diffstat (limited to 'libgnomekbd/gkbd-keyboard-drawing.c')
-rw-r--r-- | libgnomekbd/gkbd-keyboard-drawing.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c index 8ee6cf1..829560b 100644 --- a/libgnomekbd/gkbd-keyboard-drawing.c +++ b/libgnomekbd/gkbd-keyboard-drawing.c @@ -466,7 +466,7 @@ set_key_label_in_layout (GkbdKeyboardDrawing * drawing, static void -draw_layout (GkbdKeyboardDrawing * drawing, +draw_pango_layout (GkbdKeyboardDrawing * drawing, gint angle, gint x, gint y, PangoLayout * layout) { GtkStateType state = GTK_WIDGET_STATE (GTK_WIDGET (drawing)); @@ -502,16 +502,10 @@ draw_layout (GkbdKeyboardDrawing * drawing, for (j = 0; j < run->glyphs->num_glyphs; j++) { PangoGlyphGeometry *geometry; - gint xx, yy; geometry = &run->glyphs->glyphs[j].geometry; - rotate_coordinate (0, 0, x_off, y_off, - angle, &xx, &yy); - geometry->x_offset -= x_off - xx; - geometry->y_offset -= y_off - yy; - x_off += geometry->width; } } @@ -586,7 +580,7 @@ draw_key_label_helper (GkbdKeyboardDrawing * drawing, pango_layout_set_width (drawing->layout, label_max_width); label_y -= (pango_layout_get_line_count (drawing->layout) - 1) * (pango_font_description_get_size (drawing->font_desc) / PANGO_SCALE); - draw_layout (drawing, angle, label_x, label_y, drawing->layout); + draw_pango_layout (drawing, angle, label_x, label_y, drawing->layout); } static void @@ -806,7 +800,7 @@ draw_text_doodad (GkbdKeyboardDrawing * drawing, doodad->origin_y + text_doodad->top); pango_layout_set_text (drawing->layout, text_doodad->text, -1); - draw_layout (drawing, doodad->angle, x, y, drawing->layout); + draw_pango_layout (drawing, doodad->angle, x, y, drawing->layout); } static void |