freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master 956b322: [ftdiff, ftgrid] Default to gamma = 1.


From: Alexei Podtelezhnikov
Subject: [freetype2-demos] master 956b322: [ftdiff, ftgrid] Default to gamma = 1.8.
Date: Wed, 11 Nov 2015 05:06:08 +0000

branch: master
commit 956b32235ca05488a11307b7cbaac23c8274fccc
Author: Alexei Podtelezhnikov <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>

    [ftdiff,ftgrid] Default to gamma = 1.8.
    
    * src/ftcommon.c (FTDemo_Display_New): Do not set gamma.
    * graph/grblit.c (gr_glyph_gamma): Updated.
    * src/ftdiff.c (adisplay_init): Updated.
    * src/ftgrid.c (grid_status_init): Updated.
---
 ChangeLog      |    9 +++++++++
 graph/grblit.c |    2 +-
 src/ftcommon.c |    2 --
 src/ftdiff.c   |    2 +-
 src/ftgrid.c   |    2 +-
 5 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bd89383..3d47ffa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2015-11-11  Alexei Podtelezhnikov  <address@hidden>
+
+       [ftdiff,ftgrid] Default to gamma = 1.8.
+
+       * src/ftcommon.c (FTDemo_Display_New): Do not set gamma.
+       * graph/grblit.c (gr_glyph_gamma): Updated.
+       * src/ftdiff.c (adisplay_init): Updated.
+       * src/ftgrid.c (grid_status_init): Updated.
+
 2015-11-06  Alexei Podtelezhnikov  <address@hidden>
 
        [graph] Minor sRGB accuracy update.
diff --git a/graph/grblit.c b/graph/grblit.c
index 194ac60..2d80cb5 100644
--- a/graph/grblit.c
+++ b/graph/grblit.c
@@ -1823,7 +1823,7 @@
 
 #include "gblblit.h"
 
-  static double    gr_glyph_gamma = 1.2;
+  static double    gr_glyph_gamma = 1.8;
 
   void  grSetGlyphGamma( double  gamma )
   {
diff --git a/src/ftcommon.c b/src/ftcommon.c
index 291d251..d6844c8 100644
--- a/src/ftcommon.c
+++ b/src/ftcommon.c
@@ -110,8 +110,6 @@
     display->surface = surface;
     display->bitmap  = &surface->bitmap;
 
-    grSetGlyphGamma( 1.0 );
-
     display->fore_color = grFindColor( display->bitmap,
                                        0x00, 0x00, 0x00, 0xff );
     display->back_color = grFindColor( display->bitmap,
diff --git a/src/ftdiff.c b/src/ftdiff.c
index fcdaf2d..7840ea9 100644
--- a/src/ftdiff.c
+++ b/src/ftdiff.c
@@ -916,7 +916,7 @@
     display->height  = height;
     display->surface = surface;
     display->bitmap  = &surface->bitmap;
-    display->gamma   = 1.0;
+    display->gamma   = 1.8;
 
     grSetGlyphGamma( display->gamma );
 
diff --git a/src/ftgrid.c b/src/ftgrid.c
index d0ac252..d29fef3 100644
--- a/src/ftgrid.c
+++ b/src/ftgrid.c
@@ -170,7 +170,7 @@
     st->do_segment    = 0;
 
     st->Num           = 0;
-    st->gamma         = 1.0;
+    st->gamma         = 1.8;
     st->header        = "";
 
     st->mm            = NULL;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]