freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master c8b5b30: * graph/grblit.c (grGetSaturation): Fi


From: Werner Lemberg
Subject: [freetype2-demos] master c8b5b30: * graph/grblit.c (grGetSaturation): Fix return value.
Date: Thu, 21 Oct 2021 23:11:06 -0400 (EDT)

branch: master
commit c8b5b309cb12a30b9c89255885395c406b133a07
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * graph/grblit.c (grGetSaturation): Fix return value.
---
 graph/grblit.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/graph/grblit.c b/graph/grblit.c
index c55a1b7..e73b323 100644
--- a/graph/grblit.c
+++ b/graph/grblit.c
@@ -562,9 +562,9 @@
       sat->table = table;
 
       for ( i = 0; i < num_grays; i++, table++ )
-        *table = (byte)i;
+        table[i] = (byte)i;
 
-      memset( table, num_grays-1, 2*num_grays-1 );
+      memset( table+num_grays, num_grays-1, 2*num_grays-1 );
 
       gr_num_saturations++;
       gr_last_saturation = sat;



reply via email to

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