[vlc-commits] main_interface_win32: Use the video as thumbnail image

Hugo Beauzée-Luyssen git at videolan.org
Wed Dec 28 17:17:22 CET 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Dec 28 17:16:37 2016 +0100| [345754bdf1f0a17544106f11321fc2043f45a4f8] | committer: Hugo Beauzée-Luyssen

main_interface_win32: Use the video as thumbnail image

Or the full interface when no video is playing

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

 modules/gui/qt/main_interface_win32.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/modules/gui/qt/main_interface_win32.cpp b/modules/gui/qt/main_interface_win32.cpp
index b668bed..1eb8507 100644
--- a/modules/gui/qt/main_interface_win32.cpp
+++ b/modules/gui/qt/main_interface_win32.cpp
@@ -354,4 +354,15 @@ void MainInterface::changeThumbbarButtons( int i_status )
 
     if(S_OK != hr)
         msg_Err( p_intf, "ThumbBarUpdateButtons failed with error %08lx", hr );
+
+    if( videoWidget && THEMIM->getIM()->hasVideo() )
+    {
+        RECT rect;
+        GetClientRect(WinId(videoWidget), &rect);
+        hr = p_taskbl->SetThumbnailClip(WinId(this), &rect);
+    }
+    else
+        hr = p_taskbl->SetThumbnailClip(WinId(this), NULL);
+    if(S_OK != hr)
+        msg_Err( p_intf, "SetThumbnailClip failed with error %08lx", hr );
 }



More information about the vlc-commits mailing list