From b82d35b06199357751a8f56061fb3b14bbdd6760 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Sat, 25 Mar 2006 23:31:42 +0000 Subject: [project @ 2006-03-25 23:31:41 by rjek] Initial GTK thumbnail rendering implementation (still gets fonts too big) svn path=/import/netsurf/; revision=2166 --- gtk/gtk_plotters.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'gtk/gtk_plotters.c') diff --git a/gtk/gtk_plotters.c b/gtk/gtk_plotters.c index 0a65c4ec9..ad761194f 100644 --- a/gtk/gtk_plotters.c +++ b/gtk/gtk_plotters.c @@ -40,13 +40,15 @@ static bool nsgtk_plot_bitmap_tile(int x, int y, int width, int height, bool repeat_x, bool repeat_y); static bool nsgtk_plot_group_start(const char *name); static bool nsgtk_plot_group_end(void); - static void nsgtk_set_colour(colour c); static void nsgtk_set_solid(void); /**< Set for drawing solid lines */ static void nsgtk_set_dotted(void); /**< Set for drawing dotted lines */ static void nsgtk_set_dashed(void); /**< Set for drawing dashed lines */ +void nsgtk_plot_set_scale(float s); +float nsgtk_plot_get_scale(void); static GdkRectangle cliprect; +static float nsgtk_plot_scale = 1.0; struct plotter_table plot; @@ -386,3 +388,14 @@ void nsgtk_set_dashed() GDK_CAP_BUTT, GDK_JOIN_MITER); #endif } + +void nsgtk_plot_set_scale(float s) +{ + nsgtk_plot_scale = s; +} + +float nsgtk_plot_get_scale(void) +{ + return nsgtk_plot_scale; +} + -- cgit v1.2.3