fix compile of rundemo.cpp

This commit is contained in:
Dane Springmeyer 2015-01-20 19:37:31 -08:00
parent 9fda26f859
commit 4856886284

View file

@ -311,21 +311,21 @@ int main ( int, char** )
ren.apply(); ren.apply();
std::string msg("These maps have been rendered using AGG in the current directory:\n"); std::string msg("These maps have been rendered using AGG in the current directory:\n");
#ifdef HAVE_JPEG #ifdef HAVE_JPEG
save_to_file(buf.data(),"demo.jpg","jpeg"); save_to_file(buf,"demo.jpg","jpeg");
msg += "- demo.jpg\n"; msg += "- demo.jpg\n";
#endif #endif
#ifdef HAVE_PNG #ifdef HAVE_PNG
save_to_file(buf.data(),"demo.png","png"); save_to_file(buf,"demo.png","png");
save_to_file(buf.data(),"demo256.png","png8"); save_to_file(buf,"demo256.png","png8");
msg += "- demo.png\n"; msg += "- demo.png\n";
msg += "- demo256.png\n"; msg += "- demo256.png\n";
#endif #endif
#ifdef HAVE_TIFF #ifdef HAVE_TIFF
save_to_file(buf.data(),"demo.tif","tiff"); save_to_file(buf,"demo.tif","tiff");
msg += "- demo.tif\n"; msg += "- demo.tif\n";
#endif #endif
#ifdef HAVE_WEBP #ifdef HAVE_WEBP
save_to_file(buf.data(),"demo.webp","webp"); save_to_file(buf,"demo.webp","webp");
msg += "- demo.webp\n"; msg += "- demo.webp\n";
#endif #endif
msg += "Have a look!\n"; msg += "Have a look!\n";