No maTransform in PresenterSprite anymore.

Christina

Am 20.03.2012 16:07, schrieb Caolán McNamara:
On Tue, 2012-03-20 at 15:24 +0100, Chr. Rossmanith wrote:
At least it doesn't change the position of mxSprite. Only the cpu is a
little less idle  :-)  Then I'll continue to remove maTransform? Or
should it be kept for future use?
I'm not a fan of "some day we'll use it", ditch it if it doesn't do
anything right now would be my feeling.

I've a shed full of stuff I can't throw out just in case some day we
need it. Not that removing stuff from sdext will give me more space in
my shed I suppose.

C.

_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

>From 3bd1567e844340d29ffa217eb4f70f63af74915d Mon Sep 17 00:00:00 2001
From: Christina Rossmanith <[email protected]>
Date: Tue, 20 Mar 2012 20:35:01 +0100
Subject: [PATCH] maTransform had to go ( was always = identity)

---
 sdext/source/presenter/PresenterSprite.cxx |    2 --
 sdext/source/presenter/PresenterSprite.hxx |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/sdext/source/presenter/PresenterSprite.cxx b/sdext/source/presenter/PresenterSprite.cxx
index 0fca939..428f34b 100644
--- a/sdext/source/presenter/PresenterSprite.cxx
+++ b/sdext/source/presenter/PresenterSprite.cxx
@@ -44,7 +44,6 @@ PresenterSprite::PresenterSprite (void)
       mxSprite(),
       maSize(0,0),
       maLocation(0,0),
-      maTransform(1,0,0, 0,1,0),
       mbIsVisible(false),
       mnPriority(0),
       mnAlpha(1.0)
@@ -149,7 +148,6 @@ void PresenterSprite::ProvideSprite (void)
         mxSprite = mxSpriteFactory->createCustomSprite(maSize);
         if (mxSprite.is())
         {
-            mxSprite->transform(maTransform);
             mxSprite->move(maLocation,
                 rendering::ViewState(
                 geometry::AffineMatrix2D(1,0,0, 0,1,0),
diff --git a/sdext/source/presenter/PresenterSprite.hxx b/sdext/source/presenter/PresenterSprite.hxx
index 58755d7..787d1fa 100644
--- a/sdext/source/presenter/PresenterSprite.hxx
+++ b/sdext/source/presenter/PresenterSprite.hxx
@@ -74,7 +74,6 @@ private:
     ::css::uno::Reference<css::rendering::XCustomSprite> mxSprite;
     css::geometry::RealSize2D maSize;
     css::geometry::RealPoint2D maLocation;
-    css::geometry::AffineMatrix2D maTransform;
     bool mbIsVisible;
     double mnPriority;
     double mnAlpha;
-- 
1.7.4.1

_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to