[vlc-devel] commit: skins2(Linux): enable transparency since setOpacity is now available (to be tested) ( Erwan Tulou )

git version control git at videolan.org
Tue Dec 22 17:51:22 CET 2009


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue Dec 22 17:45:51 2009 +0100| [e0ee5193a6acbecfc3549634023f8f468aa34ebd] | committer: Erwan Tulou 

skins2(Linux): enable transparency since setOpacity is now available (to be tested)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0ee5193a6acbecfc3549634023f8f468aa34ebd
---

 modules/gui/skins2/src/skin_main.cpp      |    2 +-
 modules/gui/skins2/src/window_manager.cpp |    4 ----
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/modules/gui/skins2/src/skin_main.cpp b/modules/gui/skins2/src/skin_main.cpp
index e650ac7..a69ac75 100644
--- a/modules/gui/skins2/src/skin_main.cpp
+++ b/modules/gui/skins2/src/skin_main.cpp
@@ -591,9 +591,9 @@ vlc_module_begin ()
               SKINS2_SYSTRAY_LONG, false );
     add_bool( "skins2-taskbar", true, onTaskBarChange, SKINS2_TASKBAR,
               SKINS2_TASKBAR_LONG, false );
+#endif
     add_bool( "skins2-transparency", false, NULL, SKINS2_TRANSPARENCY,
               SKINS2_TRANSPARENCY_LONG, false );
-#endif
 
     add_bool( "skinned-playlist", true, NULL, SKINS2_PLAYLIST,
               SKINS2_PLAYLIST_LONG, false );
diff --git a/modules/gui/skins2/src/window_manager.cpp b/modules/gui/skins2/src/window_manager.cpp
index 01385b5..00dcf71 100644
--- a/modules/gui/skins2/src/window_manager.cpp
+++ b/modules/gui/skins2/src/window_manager.cpp
@@ -71,7 +71,6 @@ void WindowManager::startMove( TopWindow &rWindow )
     m_movingWindows.clear();
     buildDependSet( m_movingWindows, &rWindow );
 
-#ifdef WIN32
     if( config_GetInt( getIntf(), "skins2-transparency" ) )
     {
         // Change the opacity of the moving windows
@@ -89,7 +88,6 @@ void WindowManager::startMove( TopWindow &rWindow )
             (*it)->refresh( 0, 0, (*it)->getWidth(), (*it)->getHeight() );
         }
     }
-#endif
 }
 
 
@@ -98,7 +96,6 @@ void WindowManager::stopMove()
     WinSet_t::const_iterator itWin1, itWin2;
     AncList_t::const_iterator itAnc1, itAnc2;
 
-#ifdef WIN32
     if( config_GetInt( getIntf(), "skins2-transparency" ) )
     {
         // Restore the opacity of the moving windows
@@ -108,7 +105,6 @@ void WindowManager::stopMove()
             (*it)->setOpacity( m_alpha );
         }
     }
-#endif
 
     // Delete the dependencies
     m_dependencies.clear();




More information about the vlc-devel mailing list