]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/controls/ctrl_text.cpp
Copyright fixes
[vlc] / modules / gui / skins2 / controls / ctrl_text.cpp
old mode 100755 (executable)
new mode 100644 (file)
index b03db58..1dad1d4
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * ctrl_text.cpp
  *****************************************************************************
- * Copyright (C) 2003 VideoLAN
+ * Copyright (C) 2003 VideoLAN (Centrale Réseaux) and its contributors
  * $Id$
  *
  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
@@ -160,7 +160,7 @@ void CtrlText::draw( OSGraphics &rImage, int xDest, int yDest )
         if( width > 0 && height > 0 )
         {
             rImage.drawBitmap( *m_pCurrImg, -m_xPos, 0, xDest, yDest,
-                            width, height );
+                            width, height, true );
         }
     }
 }
@@ -227,7 +227,7 @@ void CtrlText::displayText( const UString &rText )
                 m_pTimer->stop();
             }
         }
-        notifyLayout();
+        notifyLayout( getPosition()->getWidth(), getPosition()->getHeight() );
     }
 }
 
@@ -311,7 +311,8 @@ void CtrlText::transMove( SkinObject *pCtrl )
         pThis->m_xPos = (pEvtMouse->getXPos() - pThis->m_xOffset);
         pThis->adjust( pThis->m_xPos );
 
-        pThis->notifyLayout();
+        pThis->notifyLayout( pThis->getPosition()->getWidth(),
+                             pThis->getPosition()->getHeight() );
     }
 }
 
@@ -323,7 +324,8 @@ void CtrlText::updateText( SkinObject *pCtrl )
     pThis->m_xPos -= MOVING_TEXT_STEP;
     pThis->adjust( pThis->m_xPos );
 
-    pThis->notifyLayout();
+    pThis->notifyLayout( pThis->getPosition()->getWidth(),
+                         pThis->getPosition()->getHeight() );
 }