summaryrefslogtreecommitdiff
path: root/atari/plot/plot.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-12-13 01:25:28 +0100
committerOle Loots <ole@monochrom.net>2013-12-13 01:25:28 +0100
commit571b8e0167cfba96fc9650c4dc8ff60b0b1844c1 (patch)
tree7f0603beed818e5cbe632338ed0bdce0c6398c9a /atari/plot/plot.c
parente9f2c3a9bfc831fe9177564225236e2588e257df (diff)
downloadnetsurf-571b8e0167cfba96fc9650c4dc8ff60b0b1844c1.tar.gz
netsurf-571b8e0167cfba96fc9650c4dc8ff60b0b1844c1.tar.bz2
plot_set_scale return old scale now.
Diffstat (limited to 'atari/plot/plot.c')
-rwxr-xr-xatari/plot/plot.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/atari/plot/plot.c b/atari/plot/plot.c
index 80551f968..b82aa367c 100755
--- a/atari/plot/plot.c
+++ b/atari/plot/plot.c
@@ -865,6 +865,7 @@ static void snapshot_suspend(void)
}
}
+#ifdef WITH_8BPP_SUPPORT
if(size_buf_std > CONV_KEEP_LIMIT ) {
buf_std.fd_addr = realloc(
buf_std.fd_addr, CONV_KEEP_LIMIT
@@ -875,6 +876,7 @@ static void snapshot_suspend(void)
size_buf_std = 0;
}
}
+#endif
if(buf_scr_compat != NULL ) {
size_t bs = bitmap_buffer_size(buf_scr_compat );
@@ -1901,9 +1903,19 @@ bool plot_get_dimensions(GRECT *dst)
return(true);
}
-bool plot_set_scale(float scale)
+/**
+ * set scale of plotter.
+ * \param scale the new scale value
+ * \return the old scale value
+ */
+
+float plot_set_scale(float scale)
{
+ float ret = view.scale;
+
view.scale = scale;
+
+ return(ret);
}
float plot_get_scale()