diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-02 15:10:50 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-07 09:18:14 +0200 |
commit | a9373a3fec4f1bd9b51c40666a12ffd9eb7357a2 (patch) | |
tree | 7a930e7ab1e30ccc2e4a746bf4fc4f4561787d09 /vcl | |
parent | c768fc150b62b1b1cd85f23efb5b5e964c89290b (diff) |
vcl tiled rendering: don't do anything with disabled mapmode and mm100 mapunit
Turns out Impress wants an mm100 -> twips conversion in this case, while
Calc wants a pixel -> twips one, so there isn't anything here that can
be abstracted in VCL.
Change-Id: Ieb961afa97affbf682e13c0a56585396ae09f552
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/paint.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index f977378a1ab2..1384dfe3d8f2 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -859,13 +859,6 @@ void Window::Invalidate( sal_uInt16 nFlags ) LogicInvalidate(0); } -/// Converts rRectangle from MM100 to twips based on the map mode of rWindow. -void lcl_toTwips(const Window& rWindow, Rectangle& rRectangle) -{ - if (rWindow.GetMapMode().GetMapUnit() == MAP_100TH_MM) - rRectangle = OutputDevice::LogicToLogic(rRectangle, MAP_100TH_MM, MAP_TWIP); -} - void Window::Invalidate( const Rectangle& rRect, sal_uInt16 nFlags ) { @@ -879,7 +872,6 @@ void Window::Invalidate( const Rectangle& rRect, sal_uInt16 nFlags ) vcl::Region aRegion( aRect ); ImplInvalidate( &aRegion, nFlags ); Rectangle aLogicRectangle(rRect); - lcl_toTwips(*this, aLogicRectangle); LogicInvalidate(&aLogicRectangle); } } @@ -902,7 +894,6 @@ void Window::Invalidate( const vcl::Region& rRegion, sal_uInt16 nFlags ) { ImplInvalidate( &aRegion, nFlags ); Rectangle aLogicRectangle = rRegion.GetBoundRect(); - lcl_toTwips(*this, aLogicRectangle); LogicInvalidate(&aLogicRectangle); } } |