olaf neophyte and de.po updates, valgrind tweaks, delete green lady, inkscape dpi=96
[goodguy/history.git] / cinelerra-5.1 / plugins / svg / svg.C
index 96288bae32d81c209e7d4ac5667ee5a83482e8ea..baa5efed7b362981092abe7780e849d9efbdd805 100644 (file)
@@ -43,7 +43,7 @@ SvgConfig::SvgConfig()
 {
        out_x = 0;   out_y = 0;
        out_w = 640; out_h = 480;
 {
        out_x = 0;   out_y = 0;
        out_w = 640; out_h = 480;
-       dpi = 90;
+       dpi = 96;
        strcpy(svg_file, "");
        ms_time = 0;
 }
        strcpy(svg_file, "");
        ms_time = 0;
 }
@@ -113,7 +113,7 @@ void SvgMain::save_data(KeyFrame *keyframe)
        FileXML output;
 
 // cause data to be stored directly in text
        FileXML output;
 
 // cause data to be stored directly in text
-       output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+       output.set_shared_output(keyframe->xbuf);
 
        output.tag.set_title("SVG");
        output.tag.set_property("OUT_X", config.out_x);
 
        output.tag.set_title("SVG");
        output.tag.set_property("OUT_X", config.out_x);
@@ -134,8 +134,7 @@ void SvgMain::read_data(KeyFrame *keyframe)
 {
        FileXML input;
 
 {
        FileXML input;
 
-       const char *data = keyframe->get_data();
-       input.set_shared_input((char*)data, strlen(data));
+       input.set_shared_input(keyframe->xbuf);
        int result = 0;
 
        while( !(result = input.read_tag()) ) {
        int result = 0;
 
        while( !(result = input.read_tag()) ) {
@@ -181,7 +180,7 @@ int SvgMain::process_realtime(VFrame *input, VFrame *output)
        strcpy(last_svg_file, config.svg_file);
        int64_t last_ms_time = config.ms_time;
        need_reconfigure = load_configuration();
        strcpy(last_svg_file, config.svg_file);
        int64_t last_ms_time = config.ms_time;
        need_reconfigure = load_configuration();
-       if( last_dpi != config.dpi )
+       if( !ofrm || last_dpi != config.dpi )
                need_export = 1;
        if( strcmp(last_svg_file, config.svg_file) ||
            last_ms_time != config.ms_time )
                need_export = 1;
        if( strcmp(last_svg_file, config.svg_file) ||
            last_ms_time != config.ms_time )