]> git.sesse.net Git - vlc/commitdiff
* modules/gui/wxwindows/interface.cpp: better heuristic for the interface size on...
authorGildas Bazin <gbazin@videolan.org>
Tue, 16 Dec 2003 13:22:51 +0000 (13:22 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 16 Dec 2003 13:22:51 +0000 (13:22 +0000)
modules/gui/wxwindows/interface.cpp

index 35437fe5a255f60bb89bc0d5827a55ae20182a4a..2e06b39496ce66588687bc8fafa73b043449493b 100644 (file)
@@ -2,7 +2,7 @@
  * interface.cpp : wxWindows plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000-2001, 2003 VideoLAN
- * $Id: interface.cpp,v 1.78 2003/12/14 15:42:19 gbazin Exp $
+ * $Id: interface.cpp,v 1.79 2003/12/16 13:22:51 gbazin Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -439,11 +439,8 @@ void Interface::CreateOurToolBar()
 
 #ifndef WIN32
     frame_sizer->SetMinSize( toolbar_sizer->GetMinSize().GetWidth(), -1 );
-#else
-    frame_sizer->SetMinSize( toolbar->GetToolSize().GetWidth() * 11 +
-                             toolbar->GetToolSeparation() * 3 +
-                             (toolbar->GetMargins().GetWidth() + 2) *
-                             toolbar->GetToolsCount(), -1 );
+#else /* That sucks but for some reason it works better */
+    frame_sizer->SetMinSize( toolbar_sizer->GetMinSize().GetWidth()*2/3, -1 );
 #endif
 
 #if !defined(__WXX11__)