[haiku-commits] haiku: hrev50931 - src/servers/app/drawing/Painter

  • From: waddlesplash@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 3 Feb 2017 02:27:07 +0100 (CET)

hrev50931 adds 1 changeset to branch 'master'
old head: daf431d22f8e68d6f0df2da9d3d2ad0756bb4a91
new head: d10e64f8517da1ebf8ffd8a0b7f049e7c1fea2cb
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=d10e64f8517d+%5Edaf431d22f8e

----------------------------------------------------------------------------

d10e64f8517d: app_server: Enable the RGB subpixel rendering codepath.
  
  This change will have no effect if your FreeType was compiled without subpixel
  rendering support, but since FreeType is now binary compatible between 
versions
  with and without subpixel rendering, all you have to do after this change
  is to recompile and reinstall FreeType.

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev50931
Commit:      d10e64f8517da1ebf8ffd8a0b7f049e7c1fea2cb
URL:         http://cgit.haiku-os.org/haiku/commit/?id=d10e64f8517d
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Thu Feb  2 20:50:30 2017 UTC

----------------------------------------------------------------------------

1 file changed, 5 insertions(+), 1 deletion(-)
src/servers/app/drawing/Painter/GlobalSubpixelSettings.h | 6 +++++-

----------------------------------------------------------------------------

diff --git a/src/servers/app/drawing/Painter/GlobalSubpixelSettings.h 
b/src/servers/app/drawing/Painter/GlobalSubpixelSettings.h
index e96203e..c4239d6 100644
--- a/src/servers/app/drawing/Painter/GlobalSubpixelSettings.h
+++ b/src/servers/app/drawing/Painter/GlobalSubpixelSettings.h
@@ -17,7 +17,11 @@ enum {
        HINTING_MODE_MONOSPACED_ONLY
 };
 
-#define AVERAGE_BASED_SUBPIXEL_FILTERING
+// Uncommenting the following line will enable the average-based (grayscale)
+// subpixel filter, thus locking RGB subpixel font rendering out of the build.
+// Unless you have a subpixel-enabled FreeType, there shouldn't be a 
difference,
+// as FreeType returns the grayscale hinting unless compiled otherwise.
+//#define AVERAGE_BASED_SUBPIXEL_FILTERING
 
 extern bool gSubpixelAntialiasing;
 extern uint8 gDefaultHintingMode;


Other related posts: