[vlc-commits] [Git][videolan/vlc][master] qt: respect interface window size constraints in `VideoWindowHandler`

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Jan 12 13:53:15 UTC 2025



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
9945c9a6 by Fatih Uzunoglu at 2025-01-12T13:39:39+00:00
qt: respect interface window size constraints in `VideoWindowHandler`

- - - - -


1 changed file:

- modules/gui/qt/maininterface/video_window_handler.cpp


Changes:

=====================================
modules/gui/qt/maininterface/video_window_handler.cpp
=====================================
@@ -110,7 +110,8 @@ void VideoWindowHandler::setVideoSize(unsigned int w, unsigned int h)
                 h = qRound( (float)h / factor );
                 msg_Dbg( m_intf, "Logical video size: %ux%u", w, h );
             }
-            m_window->resize(w, h);
+            m_window->resize(std::clamp<int>(w, m_window->minimumWidth(), m_window->maximumWidth()),
+                             std::clamp<int>(h, m_window->minimumHeight(), m_window->maximumHeight()));
         }
     }
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9945c9a6c6ca97219c0a2551ef4d571b6278f28a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9945c9a6c6ca97219c0a2551ef4d571b6278f28a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list