diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/quartz/salbmp.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index 5d6c400e4165..138d0f129bf9 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -53,6 +53,9 @@ static const unsigned long k32BitBlueColorMask = 0x000000ff; static void writeImageToFile(CGImageRef image, const char *baseName) { + static bool bDoIt = getenv("DBG_WRITE_CGIMAGES"); + if (!bDoIt) + return; static int counter = 0; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; |