]> git.sesse.net Git - vlc/commitdiff
skins2(Win32): GetWindowLongPtr everywhere
authorErwan Tulou <erwan10@videolan.org>
Fri, 29 Jan 2010 21:31:56 +0000 (22:31 +0100)
committerErwan Tulou <erwan10@videolan.org>
Mon, 1 Feb 2010 14:34:13 +0000 (15:34 +0100)
modules/gui/skins2/win32/win32_factory.cpp
modules/gui/skins2/win32/win32_window.cpp

index e8bf387f0292ab655f90e5716a1bf729bdb77b8e..812beda3d487ac064e7e29c964fc96f6838da572 100644 (file)
@@ -190,7 +190,7 @@ bool Win32Factory::init()
     // We do it this way otherwise CreateWindowEx will fail
     // if WS_EX_LAYERED is not supported
     SetWindowLongPtr( m_hParentWindow, GWL_EXSTYLE,
-                      GetWindowLong( m_hParentWindow, GWL_EXSTYLE ) |
+                      GetWindowLongPtr( m_hParentWindow, GWL_EXSTYLE ) |
                       WS_EX_LAYERED );
 
     ShowWindow( m_hParentWindow, SW_SHOW );
index 1104805ee6ad711103078d685c5a117d5001b012..8603a6b3f88a1c299198b3f7b998d071810a1844 100644 (file)
@@ -178,7 +178,7 @@ void Win32Window::setOpacity( uint8_t value ) const
         if( m_isLayered )
         {
             SetWindowLongPtr( m_hWnd, GWL_EXSTYLE,
-                GetWindowLong( m_hWnd, GWL_EXSTYLE ) & ~WS_EX_LAYERED );
+                GetWindowLongPtr( m_hWnd, GWL_EXSTYLE ) & ~WS_EX_LAYERED );
 
             // Redraw the window, otherwise we may end up with a grey rectangle
             // for some strange reason
@@ -197,7 +197,7 @@ void Win32Window::setOpacity( uint8_t value ) const
                 // (Re)Add the WS_EX_LAYERED attribute.
                 // Resizing will be very slow, now :)
                 SetWindowLongPtr( m_hWnd, GWL_EXSTYLE,
-                    GetWindowLong( m_hWnd, GWL_EXSTYLE ) | WS_EX_LAYERED );
+                    GetWindowLongPtr( m_hWnd, GWL_EXSTYLE ) | WS_EX_LAYERED );
 
                 // Redraw the window, otherwise we may end up with a grey
                 // rectangle for some strange reason