- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/svg/ReaderWriterSVG.cpp
r12945 r13041 1 1 /* -*-c++-*- Copyright (C) 2008 Miguel Escriva Gregori 2 2 * 3 * This library is open source and may be redistributed and/or modified under 3 * This library is open source and may be redistributed and/or modified under 4 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file … … 33 33 ReaderWriterSVG() 34 34 { 35 supportsExtension("svg","Scalar Vector Graphics format"); 35 supportsExtension("svg","Scalar Vector Graphics format"); 36 36 rsvg_init(); 37 37 } … … 60 60 { 61 61 unsigned int w=0, h=0; 62 std::string op = options->getOptionString(); 62 std::string op = options->getOptionString(); 63 63 size_t i = op.find("x"); 64 64 … … 101 101 cairo_scale(cr,((float)width)/dimensionData.width, ((float)height)/dimensionData.height); 102 102 rsvg_handle_render_cairo(handle, cr); 103 103 104 104 cairo_destroy(cr); 105 105 cairo_surface_destroy(cairo_surface);
