Ticket #14930: BitmapSetSaver.cpp.diff
File BitmapSetSaver.cpp.diff, 1.1 KB (added by , 6 years ago) |
---|
-
src/apps/icon-o-matic/document/savers/BitmapSetSaver.cpp
a b status_t 28 28 BitmapSetSaver::Save(Document* document) 29 29 { 30 30 entry_ref actualRef(fRef); 31 char name[B_OS_NAME_LENGTH];31 BString name; 32 32 33 33 // 64x64 34 snprintf(name, sizeof(name), "%s_64.png", fRef.name);35 actualRef.set_name(name );34 name.SetToFormat("%s_%d.png", fRef.name, 64); 35 actualRef.set_name(name.String()); 36 36 Exporter* exporter = new BitmapExporter(64); 37 37 exporter->SetSelfDestroy(true); 38 38 exporter->Export(document, actualRef); 39 39 40 40 // 16x16 41 snprintf(name, sizeof(name), "%s_16.png", fRef.name);42 actualRef.set_name(name );41 name.SetToFormat("%s_%d.png", fRef.name, 16); 42 actualRef.set_name(name.String()); 43 43 exporter = new BitmapExporter(16); 44 44 exporter->SetSelfDestroy(true); 45 45 exporter->Export(document, actualRef); 46 46 47 47 // 32x32 48 snprintf(name, sizeof(name), "%s_32.png", fRef.name);49 actualRef.set_name(name );48 name.SetToFormat("%s_%d.png", fRef.name, 32); 49 actualRef.set_name(name.String()); 50 50 exporter = new BitmapExporter(32); 51 51 exporter->SetSelfDestroy(true); 52 52 exporter->Export(document, actualRef);