summaryrefslogtreecommitdiff
path: root/src/gui/panels
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/panels')
-rw-r--r--src/gui/panels/glance.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gui/panels/glance.c b/src/gui/panels/glance.c
index da386f4..542cd74 100644
--- a/src/gui/panels/glance.c
+++ b/src/gui/panels/glance.c
@@ -2,7 +2,7 @@
/* OpenIDA - Outil d'analyse de fichiers binaires
* glance.c - panneau d'aperçu rapide
*
- * Copyright (C) 2009-2012 Cyrille Bagard
+ * Copyright (C) 2009-2013 Cyrille Bagard
*
* This file is part of OpenIDA.
*
@@ -477,6 +477,7 @@ static void compute_glance_scale(GGlancePanel *panel)
static void update_glance_panel_for_view_content(GGlancePanel *panel, GtkViewPanel *view)
{
cairo_t *cairo; /* Assistant pour le dessin */
+ GtkAllocation area; /* Dimension de la surface */
/* Mise en place d'un cache adapté */
@@ -487,13 +488,16 @@ static void update_glance_panel_for_view_content(GGlancePanel *panel, GtkViewPan
panel->painting.width,
panel->painting.height);
- cairo = cairo_create(panel->cache);
+ /* Dessin de l'aperçu représentatif */
- cairo_scale(cairo, panel->scale, panel->scale);
+ cairo = cairo_create(panel->cache);
- /* Dessin de l'aperçu représentatif */
+ area.x = 0;
+ area.y = 0;
+ area.width = panel->painting.width;
+ area.height = panel->painting.height;
- gtk_view_panel_cache_glance(view, cairo);
+ gtk_view_panel_cache_glance(view, cairo, &area, panel->scale);
cairo_destroy(cairo);