diff options
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index 8647409d8848..ac49e5e6c5f6 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -1824,6 +1824,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 |