diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-10-31 14:11:53 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-10-31 14:11:53 +0000 |
| commit | e67e0a69e8f168646076d26e7317eaec4e02058a (patch) | |
| tree | 23fd64b38512568e1f74d46c95d47e05e3f45250 /rotord/src/graph.h | |
| parent | e9f7eeacb01eab0c33882a93d4c075cb4d6e0171 (diff) | |
audio thumbnails
Diffstat (limited to 'rotord/src/graph.h')
| -rw-r--r-- | rotord/src/graph.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rotord/src/graph.h b/rotord/src/graph.h index 9266fe3..50f3f87 100644 --- a/rotord/src/graph.h +++ b/rotord/src/graph.h @@ -106,7 +106,7 @@ namespace Rotor { RsvgDimensionData dims; rsvg_handle_get_dimensions(rsvg,&dims); cerr<<"Rotor: SVG loaded "<<inputfilename<<" , "<<dims.width<<"x"<<dims.height<<endl; - cv::Mat cp=cv::Mat(h,w,CV_8UC4); + cv::Mat cp=cv::Mat::zeros(h,w,CV_8UC4); cv::Mat co=cv::Mat(h,w,CV_8UC3); cairo_surface_t * cs = cairo_image_surface_create_for_data (cp.data, CAIRO_FORMAT_RGB24, |
