Kaydet (Commit) 37874c29 authored tarafından Luboš Luňák's avatar Luboš Luňák

make debug code work properly also on non-win32

Change-Id: I5ccf6b079ef8b6a341d06627e4b0abc9d90e0f8b
Reviewed-on: https://gerrit.libreoffice.org/71566
Tested-by: Jenkins
Reviewed-by: 's avatarLuboš Luňák <l.lunak@collabora.com>
üst 6e07375f
......@@ -100,7 +100,13 @@ namespace drawinglayer
#ifdef DBG_UTIL
if(bDoSaveForVisualControl)
{
SvFileStream aNew("c:\\test_content.png", StreamMode::WRITE|StreamMode::TRUNC);
SvFileStream aNew(
#ifdef _WIN32
"c:\\test_content.png"
#else
"~/test_content.png"
#endif
, StreamMode::WRITE|StreamMode::TRUNC);
BitmapEx aContentEx(aContent);
vcl::PNGWriter aPNGWriter(aContentEx);
aPNGWriter.Write(aNew);
......@@ -131,7 +137,13 @@ namespace drawinglayer
#ifdef DBG_UTIL
if(bDoSaveForVisualControl)
{
SvFileStream aNew("c:\\test_alpha.png", StreamMode::WRITE|StreamMode::TRUNC);
SvFileStream aNew(
#ifdef _WIN32
"c:\\test_alpha.png"
#else
"~/test_alpha.png"
#endif
, StreamMode::WRITE|StreamMode::TRUNC);
BitmapEx aAlphaEx(aAlpha);
vcl::PNGWriter aPNGWriter(aAlphaEx);
aPNGWriter.Write(aNew);
......@@ -143,7 +155,13 @@ namespace drawinglayer
#ifdef DBG_UTIL
if(bDoSaveForVisualControl)
{
SvFileStream aNew("c:\\test_combined.png", StreamMode::WRITE|StreamMode::TRUNC);
SvFileStream aNew(
#ifdef _WIN32
"c:\\test_combined.png"
#else
"~/test_combined.png"
#endif
, StreamMode::WRITE|StreamMode::TRUNC);
vcl::PNGWriter aPNGWriter(aRetval);
aPNGWriter.Write(aNew);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment