From b545e479ca5bad8fbde534a534dfe22cdfa80e3f Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 18 Sep 2008 19:10:53 -0700 Subject: [PATCH] SPrefs: Add "Use hardware YUV->RGB conversion" since nVidia drivers are broken. As reported by TheFluff and various forum users. --- modules/gui/qt4/components/simple_preferences.cpp | 2 ++ modules/gui/qt4/ui/sprefs_video.ui | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp index 64a59cd9c1..97a757a92a 100644 --- a/modules/gui/qt4/components/simple_preferences.cpp +++ b/modules/gui/qt4/components/simple_preferences.cpp @@ -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, diff --git a/modules/gui/qt4/ui/sprefs_video.ui b/modules/gui/qt4/ui/sprefs_video.ui index 211f903a27..acaf48372a 100644 --- a/modules/gui/qt4/ui/sprefs_video.ui +++ b/modules/gui/qt4/ui/sprefs_video.ui @@ -6,8 +6,8 @@ 0 0 - 408 - 513 + 482 + 516 @@ -99,6 +99,13 @@ + + + + _("Use hardware YUV->RGB conversions") + + + -- 2.39.2