>From b453cefde0fcc6ec7eb7507fce1f204642c154a0 Mon Sep 17 00:00:00 2001
From: Thomas Collerton <tom.col...@gmail.com>
Date: Fri, 18 Nov 2011 12:17:13 +0100
Subject: [PATCH] Improved Header/Footer UI framerate

---
 sw/source/ui/docvw/HeaderFooterWin.cxx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sw/source/ui/docvw/HeaderFooterWin.cxx
b/sw/source/ui/docvw/HeaderFooterWin.cxx
index 1db769a..076ce17 100644
--- a/sw/source/ui/docvw/HeaderFooterWin.cxx
+++ b/sw/source/ui/docvw/HeaderFooterWin.cxx
@@ -191,7 +191,7 @@ SwHeaderFooterWin::SwHeaderFooterWin( SwEditWin*
pEditWin, const SwPageFrm* pPag
     m_pPopupMenu->SetItemText( FN_HEADERFOOTER_DELETE, aRewriter.Apply(
aText ) );
     SetPopupMenu( m_pPopupMenu );

-    m_aFadeTimer.SetTimeout( 500 );
+    m_aFadeTimer.SetTimeout( 50 );
     m_aFadeTimer.SetTimeoutHdl( LINK( this, SwHeaderFooterWin, FadeHandler
) );
 }

@@ -501,9 +501,9 @@ void SwHeaderFooterWin::Select( )
 IMPL_LINK( SwHeaderFooterWin, FadeHandler, Timer *, EMPTYARG )
 {
     if ( m_bIsAppearing && m_nFadeRate > 0 )
-        m_nFadeRate -= 10;
+        m_nFadeRate -= 25;
     else if ( !m_bIsAppearing && m_nFadeRate < 100 )
-        m_nFadeRate += 10;
+        m_nFadeRate += 25;

     if ( m_nFadeRate != 100 && !IsVisible() )
     {
-- 
1.7.7.3

2011/11/18 Thomas Collerton <tom.col...@gmail.com>

> Hello, here's a small patch which improves the the framerate of the new
> Header/Footer UI in Writer. Released under LGPLv3
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to