diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2013-01-06 02:35:37 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2013-01-06 02:35:37 (GMT) |
commit | dcd03173f71b09f38238f50dfcf4c1db0c014c4c (patch) | |
tree | 0069e4d74bdacfd130fcf46282a32914c645a7cb /src/gui | |
parent | 405698182c46a82d92ccd50baa43fea5e40b1f6a (diff) |
Transferred the scale computing to the rendered view.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@319 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/panels/glance.c | 14 |
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); |