Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > ce2e75decdd057e5c961fad858af3221 > files > 35

kdebase4-workspace-4.4.5-0.2mdv2010.2.src.rpm

Index: ConfigureChecks.cmake
===================================================================
--- ConfigureChecks.cmake
+++ ConfigureChecks.cmake	2009-11-07 00:49:57.000000000 +0100
@@ -63,7 +63,6 @@
 check_include_files("sys/types.h;sys/statfs.h" HAVE_SYS_STATFS_H)
 check_function_exists(statfs HAVE_STATFS)
 macro_bool_to_01(FONTCONFIG_FOUND HAVE_FONTCONFIG) # kcontrol/{fonts,kfontinst}
-macro_bool_to_01(FREETYPE_FOUND HAVE_FREETYPE) # kcontrol/fonts
 macro_bool_to_01(OPENGL_FOUND HAVE_OPENGL) # kwin
 macro_bool_to_01(X11_XShm_FOUND HAVE_XSHM) # kwin, ksplash
 macro_bool_to_01(X11_XTest_FOUND HAVE_XTEST) # khotkeys, kxkb, kdm
Index: config-workspace.h.cmake
===================================================================
--- config-workspace.h.cmake
+++ config-workspace.h.cmake	2009-11-07 00:50:31.000000000 +0100
@@ -12,9 +12,6 @@
 /* Defines if your system has the libfontconfig library */
 #cmakedefine HAVE_FONTCONFIG 1
 
-/* Defines if your system has the freetype library */
-#cmakedefine HAVE_FREETYPE 1
-
 /* Define if you have gethostname */
 #cmakedefine HAVE_GETHOSTNAME 1
 
Index: kcontrol/fonts/fonts.cpp
===================================================================
--- kcontrol/fonts/fonts.cpp
+++ kcontrol/fonts/fonts.cpp	2009-11-07 00:51:56.000000000 +0100
@@ -42,14 +42,6 @@
 
 #include <kdebug.h>
 
-#ifdef HAVE_FREETYPE
-#include <ft2build.h>
-#ifdef FT_LCD_FILTER_H
-#include FT_FREETYPE_H
-#include FT_LCD_FILTER_H
-#endif
-#endif
-
 #include <X11/Xlib.h>
 
 #include <KPluginFactory>
@@ -454,19 +446,6 @@
   excludeTo->setEnabled(excludeRange->isChecked());
   excludeToLabel->setEnabled(excludeRange->isChecked());
   subPixelType->setEnabled(useSubPixel->isChecked());
-#ifdef FT_LCD_FILTER_H
-  static int ft_has_subpixel = -1;
-  if( ft_has_subpixel == -1 ) {
-    FT_Library            ftLibrary;
-    if(FT_Init_FreeType(&ftLibrary) == 0) {
-      ft_has_subpixel = ( FT_Library_SetLcdFilter(ftLibrary, FT_LCD_FILTER_DEFAULT )
-        == FT_Err_Unimplemented_Feature ) ? 0 : 1;
-      FT_Done_FreeType(ftLibrary);
-    }
-  }
-  useSubPixel->setEnabled(ft_has_subpixel);
-  subPixelType->setEnabled(ft_has_subpixel);
-#endif
 }
 #endif