summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorPtyl Dragon <ptyl@cloudon.com>2013-11-04 13:34:44 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:52:06 +0100
commit98adbf2d80cf998f7b3825fa4d685de6f25be352 (patch)
treec013bb83e2be476b849d6c27f07bc1dd39e42741 /sw
parente56b0c0f248ae779a0abd9e1d5aa7f7420a03f64 (diff)
removed use of envvars in touch_lo_draw_tile
Change-Id: Id9ee6e616fe417023d0ce011263659056e80a5a2
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/viewsh.cxx15
1 files changed, 1 insertions, 14 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index d5080dcbd309..c5ef02925d0e 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1798,8 +1798,6 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, MLOD
Application::AcquireSolarMutex(1);
if (pViewShell)
{
- static bool bUseTileSize = getenv("USETILESIZE") != NULL;
- static bool bCallSetSwVisArea = bUseTileSize && getenv("CALLSETSWVISAREA") != NULL;
// TODO create a VirtualDevice based on SystemGraphicsData instead so
// that we get direct rendering; something like:
//
@@ -1814,23 +1812,12 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, MLOD
aMapMode.SetScaleX(scaleX);
aMapMode.SetScaleY(scaleY);
aDevice.SetMapMode(aMapMode);
- if (bCallSetSwVisArea)
- {
- SwRect foo = pViewShell->VisArea();
- SAL_INFO("sw", "old VisArea: " << foo);
- SetSwVisArea( pViewShell, SwRect(Point(tilePosX, tilePosY), Size(tileWidth, tileHeight)) );
- foo = pViewShell->VisArea();
- SAL_INFO("sw", "new VisArea: " << foo);
- }
// resizes the virtual device so to contain the entrie context
aDevice.SetOutputSizePixel(Size(contextWidth, contextHeight));
// scroll the requested area into view if necessary
pViewShell->MakeVisible(SwRect(Point(tilePosX, tilePosY), aDevice.PixelToLogic(Size(contextWidth, contextHeight))));
// draw - works in logic coordinates
- if (bUseTileSize)
- pViewShell->PaintTile(&aDevice, Rectangle(Point(tilePosX, tilePosY), Size(tileWidth, tileHeight)));
- else
- pViewShell->PaintTile(&aDevice, Rectangle(Point(tilePosX, tilePosY), aDevice.PixelToLogic(Size(contextWidth, contextHeight))));
+ pViewShell->PaintTile(&aDevice, Rectangle(Point(tilePosX, tilePosY), aDevice.PixelToLogic(Size(contextWidth, contextHeight))));
// copy the aDevice content to mpImage
Bitmap aBitmap(aDevice.GetBitmap(aDevice.PixelToLogic(Point(0,0)), aDevice.PixelToLogic(Size(contextWidth, contextHeight))));
BitmapReadAccess * readAccess = aBitmap.AcquireReadAccess();