summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkviewpanel.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2013-01-06 02:35:37 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2013-01-06 02:35:37 (GMT)
commitdcd03173f71b09f38238f50dfcf4c1db0c014c4c (patch)
tree0069e4d74bdacfd130fcf46282a32914c645a7cb /src/gtkext/gtkviewpanel.c
parent405698182c46a82d92ccd50baa43fea5e40b1f6a (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/gtkext/gtkviewpanel.c')
-rw-r--r--src/gtkext/gtkviewpanel.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gtkext/gtkviewpanel.c b/src/gtkext/gtkviewpanel.c
index 97897a8..6d10009 100644
--- a/src/gtkext/gtkviewpanel.c
+++ b/src/gtkext/gtkviewpanel.c
@@ -2,7 +2,7 @@
/* OpenIDA - Outil d'analyse de fichiers binaires
* gtkviewpanel.c - affichage de contenu de binaire
*
- * Copyright (C) 2010-2012 Cyrille Bagard
+ * Copyright (C) 2010-2013 Cyrille Bagard
*
* This file is part of OpenIDA.
*
@@ -567,6 +567,8 @@ void gtk_view_panel_scroll_to_address(GtkViewPanel *panel, vmpa_t addr)
* *
* Paramètres : panel = composant GTK à manipuler. *
* cairo = assistant pour la création de rendus. *
+* area = taille de la surface réduite à disposition. *
+* scale = échelle vis à vis de la taille réelle. *
* *
* Description : Place en cache un rendu destiné à l'aperçu graphique rapide. *
* *
@@ -576,9 +578,9 @@ void gtk_view_panel_scroll_to_address(GtkViewPanel *panel, vmpa_t addr)
* *
******************************************************************************/
-void gtk_view_panel_cache_glance(GtkViewPanel *panel, cairo_t *cairo)
+void gtk_view_panel_cache_glance(GtkViewPanel *panel, cairo_t *cairo, const GtkAllocation *area, double scale)
{
if (panel->cache_glance != NULL)
- panel->cache_glance(panel, cairo);
+ panel->cache_glance(panel, cairo, area, scale);
}