diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-10-28 18:01:10 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-10-28 18:01:10 (GMT) |
commit | ec41b7e4321986140bffdb87ca7efefb1d57f881 (patch) | |
tree | bd9e580562d814d06ac9a1718efdbf296bbc52e0 /src/svg.h | |
parent | 0473a0eff3ccaaf8632c41b4ee9ced2fd716ed3a (diff) |
move failure-detection so there is only one reset of error behavior.
Diffstat (limited to 'src/svg.h')
-rw-r--r-- | src/svg.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -9,11 +9,13 @@ namespace OpenSCAD { // currently for debugging, not necessarily pretty or useful for users. (yet) +#define SVG_PXW 480; +#define SVG_PXH 480; static int svg_cursor_py = 0; -static int svg_px_width = 480; -static int svg_px_height = 480; +static int svg_px_width = SVG_PXW; +static int svg_px_height = SVG_PXH; -std::string svg_header(); +std::string svg_header( int widthpx = SVG_PXW, int heightpx = SVG_PXH ); std::string svg_label( std::string s ); std::string svg_border(); std::string svg_axes(); |