diff options
author | Ole Loots <ole@monochrom.net> | 2013-12-04 00:41:17 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-12-04 00:41:17 +0100 |
commit | d53cbcbcb26c036cd734d8cb95f93a87e967dc9e (patch) | |
tree | de348e5ad3eb2efdbee7f49ba45cc5f82494eb37 | |
parent | 5b4a9e9315d688765115f846a8cd1731dfffb5b3 (diff) | |
download | netsurf-d53cbcbcb26c036cd734d8cb95f93a87e967dc9e.tar.gz netsurf-d53cbcbcb26c036cd734d8cb95f93a87e967dc9e.tar.bz2 |
Added "scale" member and get / set methods
-rwxr-xr-x | atari/plot/plot.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/atari/plot/plot.c b/atari/plot/plot.c index 19c34e257..3ebaaa281 100755 --- a/atari/plot/plot.c +++ b/atari/plot/plot.c @@ -49,6 +49,7 @@ struct s_view { short vis_w; /* clipped to screen dimensions */ short vis_h; /* visible width */ struct rect clipping; /* clipping rectangle */ + float scale; }; /* @@ -1899,6 +1900,16 @@ bool plot_get_dimensions(GRECT *dst) return(true); } +bool plot_set_scale(float scale) +{ + view.scale = scale; +} + +float plot_get_scale() +{ + return(view.scale); +} + bool plot_clip(const struct rect *clip) { GRECT canvas, screen, gclip, isection; |