diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-10 22:44:49 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-11 13:20:16 +0300 |
commit | 5c501c19aca3fcd8a00076d832a228e2e0fdbfe2 (patch) | |
tree | 5ed889a0aed3c70c1c82266cbb4c41c479508e60 /vcl | |
parent | 2cb2fc5612531eb5e0205909da3d491e14a15e63 (diff) |
Put writing the CGImages behind the env var DBG_WRITE_CGIMAGES
Change-Id: I1eac909bfa0ff3a945c294a2d6f4cb1d454ac985
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]; |