add scaled icon data
[goodguy/history.git] / cinelerra-5.0 / guicast / bcbitmap.C
index dedb03b49ec6f56a01362619ab4df399947edf28..e9118da47ab9c1248516ba647ba67dec81fcd39e 100644 (file)
@@ -270,12 +270,10 @@ BC_XImage::~BC_XImage()
 }
 
 
-BC_Bitmap::BC_Bitmap(BC_WindowBase *parent_window, unsigned char *png_data)
+BC_Bitmap::BC_Bitmap(BC_WindowBase *parent_window, unsigned char *png_data, double scale)
 {
 // Decompress data into a temporary vframe
-       VFrame frame;
-
-       frame.read_png(png_data);
+       VFramePng frame(png_data, scale);
 
        avail_lock = 0;
 // Initialize the bitmap