]> git.sesse.net Git - vlc/commitdiff
SPrefs: Add "Use hardware YUV->RGB conversion" since nVidia drivers are broken.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 19 Sep 2008 02:10:53 +0000 (19:10 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 19 Sep 2008 02:10:53 +0000 (19:10 -0700)
As reported by TheFluff and various forum users.

modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/ui/sprefs_video.ui

index 64a59cd9c18a947bf7092185fcc578c1db8116cd..97a757a92a6cf66949f9433d1edc457c77115b7b 100644 (file)
@@ -193,8 +193,10 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             CONFIG_GENERIC( "directx-wallpaper" , Bool , NULL, wallpaperMode );
             CONFIG_GENERIC( "directx-device", StringList, NULL,
                             dXdisplayDevice );
+            CONFIG_GENERIC( "directx-hw-yuv", Bool, NULL, hwYUVBox );
 #else
             ui.directXBox->setVisible( false );
+            ui.hwYUVBox->setVisible( false );
 #endif
 
             CONFIG_GENERIC_FILE( "snapshot-path", Directory, NULL,
index 211f903a27116c353b13f6ff6fd02c0c52f8e0e9..acaf48372a6e56bfeeb75d1f17db13cd2224096d 100644 (file)
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>408</width>
-    <height>513</height>
+    <width>482</width>
+    <height>516</height>
    </rect>
   </property>
   <property name="windowTitle" >
         </property>
        </widget>
       </item>
+      <item row="2" column="2" >
+       <widget class="QCheckBox" name="hwYUVBox" >
+        <property name="text" >
+         <string>_("Use hardware YUV->RGB conversions")</string>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>