summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-02-14 14:01:19 +0100
committerLuboš Luňák <l.lunak@collabora.com>2020-02-16 14:49:25 +0100
commit52c998be025563802a5056a15352e4608311be1d (patch)
tree0c375357ef4a55b484a077caf25280f60e1b84b6 /canvas
parent6476745ac9a8cfba649a702a1a14af4526b65072 (diff)
draw sprite bounds in vclcanvas only if explicitly asked for
The #ifdef on debug level got reduced to normal debug builds as an Easy Hack in f0de4374fffe7f, but that means that the green debug lines are now drawn in all debug builds. The frame info debug text is at least obviously debug output, but "random" green lines look like drawing problems, so disable them, unless explicitly asked for. Change-Id: I56ebc799ca72565cabee35552c4bd2641e2393c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88713 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/vcl/spritecanvashelper.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/canvas/source/vcl/spritecanvashelper.cxx b/canvas/source/vcl/spritecanvashelper.cxx
index 29c3295e4b59..8d58f4fcb359 100644
--- a/canvas/source/vcl/spritecanvashelper.cxx
+++ b/canvas/source/vcl/spritecanvashelper.cxx
@@ -126,7 +126,10 @@ namespace vclcanvas
{
#if OSL_DEBUG_LEVEL > 0
// inverse defaults for verbose debug mode
- mbShowSpriteBounds = mbShowFrameInfo = true;
+ mbShowFrameInfo = true;
+ // this looks like drawing errors, enable only if explicitly asked for
+ static bool enableShowSpriteBounds = getenv("CANVAS_SPRITE_BOUNDS") != nullptr;
+ mbShowSpriteBounds = enableShowSpriteBounds;
#endif
}