From 125fd4c65c7368bc0c50f08e84f72796d43942a1 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 12 Jan 2011 15:45:18 +0900 Subject: [PATCH] libeek/gtk: fix scale and geometry calculation --- eek/eek-gtk-keyboard.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eek/eek-gtk-keyboard.c b/eek/eek-gtk-keyboard.c index f7cd3143..3fe3e8f1 100644 --- a/eek/eek-gtk-keyboard.c +++ b/eek/eek-gtk-keyboard.c @@ -465,8 +465,8 @@ redraw_key (cairo_t *cr, gdk_cairo_set_source_color (cr, &style->fg[state]); cairo_scale (cr, - priv->scale * key_surface_scale[KEY_SURFACE_LARGE], - priv->scale * key_surface_scale[KEY_SURFACE_LARGE]); + key_surface_scale[KEY_SURFACE_LARGE], + key_surface_scale[KEY_SURFACE_LARGE]); eek_draw_key_label (cr, key, priv->fonts); break; } @@ -590,8 +590,8 @@ on_size_allocate (GtkWidget *widget, eek_element_get_bounds (EEK_ELEMENT(keyboard), &bounds); priv->scale = allocation->width > allocation->height ? - allocation->width / bounds.width : - allocation->height / bounds.height; + allocation->height / bounds.height : + allocation->width / bounds.width; } GtkWidget *