[vlc-devel] commit: skins2(Win32): GetWindowLongPtr everywhere (Erwan Tulou )

git version control git at videolan.org
Mon Feb 1 15:34:50 CET 2010


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Jan 29 22:31:56 2010 +0100| [9e1a485c4634c22e0786817c7e2faad2a57e94f0] | committer: Erwan Tulou 

skins2(Win32): GetWindowLongPtr everywhere

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

 modules/gui/skins2/win32/win32_factory.cpp |    2 +-
 modules/gui/skins2/win32/win32_window.cpp  |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/skins2/win32/win32_factory.cpp b/modules/gui/skins2/win32/win32_factory.cpp
index e8bf387..812beda 100644
--- a/modules/gui/skins2/win32/win32_factory.cpp
+++ b/modules/gui/skins2/win32/win32_factory.cpp
@@ -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 );
diff --git a/modules/gui/skins2/win32/win32_window.cpp b/modules/gui/skins2/win32/win32_window.cpp
index 1104805..8603a6b 100644
--- a/modules/gui/skins2/win32/win32_window.cpp
+++ b/modules/gui/skins2/win32/win32_window.cpp
@@ -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




More information about the vlc-devel mailing list