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 64a59cd..97a757a 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 211f903..acaf483 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>