sw/source/core/view/viewsh.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+)
New commits: commit 9fa626ccb2b0a0fc7bb83d83fa1ca462cb696bff Author: Miklos Vajna <[email protected]> Date: Wed Jan 14 18:35:48 2015 +0100 SwViewShell::PaintTile: paint a small red rectangle as well in debug mode Change-Id: I246965ac341ef0deeb30f1d3a0c518e67a074869 diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index 39bc4b1..ac1f3e0 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -1822,6 +1822,19 @@ void SwViewShell::PaintTile(VirtualDevice &rDevice, int contextWidth, int contex // SwViewShell's output device tear down mpOut = pSaveOut; mbTiledRendering = bTiledRendering; + + static bool bDebug = getenv("SW_DEBUG_TILEDRENDERING") != 0; + if (bDebug) + { + // Draw a small red rectangle in the top left corner so that it's easy to see where a new tile begins. + Rectangle aRect(0, 0, 5, 5); + aRect = rDevice.PixelToLogic(aRect); + rDevice.Push(PushFlags::FILLCOLOR | PushFlags::LINECOLOR); + rDevice.SetFillColor(COL_LIGHTRED); + rDevice.SetLineColor(); + rDevice.DrawRect(aRect); + rDevice.Pop(); + } } #if !HAVE_FEATURE_DESKTOP _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
