From edff06395018e20d359a98d88e75d7b1b3af9049 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 24 Apr 2009 17:17:51 +0000 Subject: [PATCH] - enable FT_LCD_FILTER --- .cvsignore | 3 +-- ...ource-src-4.5.0-disable_ft_lcdfilter.patch | 16 -------------- ...source-src-4.5.1-enable_ft_lcdfilter.patch | 21 +++++++++++++++++++ qt.spec | 10 +++++---- 4 files changed, 28 insertions(+), 22 deletions(-) delete mode 100644 qt-x11-opensource-src-4.5.0-disable_ft_lcdfilter.patch create mode 100644 qt-x11-opensource-src-4.5.1-enable_ft_lcdfilter.patch diff --git a/.cvsignore b/.cvsignore index 3c77930..660daf4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,5 +1,4 @@ hi128-app-qt4-logo.png hi48-app-qt4-logo.png -qt-x11-opensource-src-4.5.0.tar.bz2 -qt-copy-patches-20090325svn.tar.bz2 +qt-x11-opensource-src-4.5.1.tar.bz2 qt-copy-patches-20090424svn.tar.bz2 diff --git a/qt-x11-opensource-src-4.5.0-disable_ft_lcdfilter.patch b/qt-x11-opensource-src-4.5.0-disable_ft_lcdfilter.patch deleted file mode 100644 index 397d5ce..0000000 --- a/qt-x11-opensource-src-4.5.0-disable_ft_lcdfilter.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -up qt-x11-opensource-src-4.5.0/src/gui/text/qfontengine_ft.cpp.disable_ft_lcdfilter qt-x11-opensource-src-4.5.0/src/gui/text/qfontengine_ft.cpp ---- qt-x11-opensource-src-4.5.0/src/gui/text/qfontengine_ft.cpp.disable_ft_lcdfilter 2009-04-14 13:56:07.000000000 -0500 -+++ qt-x11-opensource-src-4.5.0/src/gui/text/qfontengine_ft.cpp 2009-04-14 13:59:00.000000000 -0500 -@@ -72,9 +72,9 @@ - #include FT_CONFIG_OPTIONS_H - #endif - --#if defined(FT_LCD_FILTER_H) && defined(FT_CONFIG_OPTION_SUBPIXEL_RENDERING) --#define QT_USE_FREETYPE_LCDFILTER --#endif -+//#if defined(FT_LCD_FILTER_H) && defined(FT_CONFIG_OPTION_SUBPIXEL_RENDERING) -+//#define QT_USE_FREETYPE_LCDFILTER -+//#endif - - #ifdef QT_LINUXBASE - #include FT_ERRORS_H diff --git a/qt-x11-opensource-src-4.5.1-enable_ft_lcdfilter.patch b/qt-x11-opensource-src-4.5.1-enable_ft_lcdfilter.patch new file mode 100644 index 0000000..9923f33 --- /dev/null +++ b/qt-x11-opensource-src-4.5.1-enable_ft_lcdfilter.patch @@ -0,0 +1,21 @@ +diff -up qt-x11-opensource-src-4.5.1/src/gui/text/qfontengine_ft.cpp.enable_ft_lcdfilter qt-x11-opensource-src-4.5.1/src/gui/text/qfontengine_ft.cpp +--- qt-x11-opensource-src-4.5.1/src/gui/text/qfontengine_ft.cpp.enable_ft_lcdfilter 2009-04-21 18:57:41.000000000 -0500 ++++ qt-x11-opensource-src-4.5.1/src/gui/text/qfontengine_ft.cpp 2009-04-24 11:17:49.562695405 -0500 +@@ -72,7 +72,7 @@ + #include FT_CONFIG_OPTIONS_H + #endif + +-#if defined(FT_LCD_FILTER_H) && defined(FT_CONFIG_OPTION_SUBPIXEL_RENDERING) ++#if defined(FT_LCD_FILTER_H) // && defined(FT_CONFIG_OPTION_SUBPIXEL_RENDERING) + #define QT_USE_FREETYPE_LCDFILTER + #endif + +@@ -1051,7 +1051,7 @@ QFontEngineFT::Glyph *QFontEngineFT::loa + Q_ASSERT(antialias); + uchar *convoluted = new uchar[bitmap.rows*bitmap.pitch]; + bool useLegacyLcdFilter = false; +-#if defined(FC_LCD_FILTER) && defined(FT_LCD_FILTER_H) ++#if defined(FT_LCD_FILTER_H) // && defined(FC_LCD_FILTER) + useLegacyLcdFilter = (lcdFilterType == FT_LCD_FILTER_LEGACY); + #endif + uchar *buffer = bitmap.buffer; diff --git a/qt.spec b/qt.spec index 6ec0acf..5b2e696 100644 --- a/qt.spec +++ b/qt.spec @@ -12,7 +12,7 @@ Epoch: 1 Name: qt4 %endif Version: 4.5.1 -Release: 2%{?dist} +Release: 3%{?dist} # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions @@ -41,8 +41,7 @@ Patch5: qt-all-opensource-src-4.4.0-rc1-as_IN-437440.patch Patch13: qt-x11-opensource-src-4.5.0-gcc_hack.patch # qt fails to build on ia64: http://bugzilla.redhat.com/492174 Patch14: qt-x11-opensource-src-4.5.0-ia64_boilerplate.patch -# http://bugzilla.redhat.com/490377 -Patch15: qt-x11-opensource-src-4.5.0-disable_ft_lcdfilter.patch +Patch15: qt-x11-opensource-src-4.5.1-enable_ft_lcdfilter.patch ## upstreamable bits # http://bugzilla.redhat.com/485677 @@ -320,7 +319,7 @@ test -x apply_patches && ./apply_patches %patch5 -p1 -b .bz#437440-as_IN-437440 %patch13 -p1 -b .gcc_hack %patch14 -p1 -b .ia64_boilerplate -%patch15 -p1 -b .disable_ft_lcdfilter +%patch15 -p1 -b .enable_ft_lcdfilter %patch51 -p1 -b .qdoc3 %patch52 -p1 -b .sparc64 %patch53 -p1 -b .qatomic-inline-asm @@ -805,6 +804,9 @@ gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||: %changelog +* Fri Apr 24 2009 Rex Dieter - 4.5.1-3 +- enable FT_LCD_FILTER + * Fri Apr 24 2009 Than Ngo - 4.5.1-2 - apply upstream patch to fix the svg rendering regression