From 52c998be025563802a5056a15352e4608311be1d Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Fri, 14 Feb 2020 14:01:19 +0100 Subject: draw sprite bounds in vclcanvas only if explicitly asked for MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- canvas/source/vcl/spritecanvashelper.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } -- cgit