Skip to content
Browse files

Revert "use transparent bg color"

This reverts commit 7a65519.
  • Loading branch information...
1 parent 3014969 commit 2adabc894534349e5aa833eb465ef02524d966bd @jjallaire jjallaire committed Mar 12, 2013
View
3 src/cpp/r/session/graphics/RGraphicsPlotManager.cpp
@@ -300,8 +300,7 @@ Error PlotManager::savePlotAsBitmapFile(const FilePath& targetPath,
// generate code for creating bitmap file device
boost::format fmt(
"{ require(grDevices, quietly=TRUE); "
- " %1%(filename=\"%2%\", width=%3%, height=%4%, "
- " bg = \"transparent\", pointsize = 16 %5%); }");
+ " %1%(filename=\"%2%\", width=%3%, height=%4%, pointsize = 16 %5%); }");
std::string deviceCreationCode = boost::str(fmt % bitmapFileType %
string_utils::utf8ToSystem(targetPath.absolutePath()) %
width %
View
4 src/cpp/r/session/graphics/RShadowPngGraphicsHandler.cpp
@@ -106,9 +106,7 @@ Error shadowDevDesc(DeviceContext* pDC, pDevDesc* pDev)
PreserveCurrentDeviceScope preserveCurrentDeviceScope;
// create PNG device (completely bail on error)
- boost::format fmt("grDevices:::png(\"%1%\", %2%, %3% %4%, "
- "bg = \"transparent\", "
- "pointsize = 16)");
+ boost::format fmt("grDevices:::png(\"%1%\", %2%, %3% %4%, pointsize = 16)");
std::string code = boost::str(fmt %
string_utils::utf8ToSystem(pDC->targetPath.absolutePath()) %
pDC->width %

0 comments on commit 2adabc8

Please sign in to comment.
Something went wrong with that request. Please try again.