freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][master] * graph/grblit.c (grGetSaturation


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] * graph/grblit.c (grGetSaturation): Fix return value.
Date: Fri, 22 Oct 2021 03:11:03 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs

Commits:

1 changed file:

Changes:

  • graph/grblit.c
    ... ... @@ -562,9 +562,9 @@
    562 562
           sat->table = table;
    
    563 563
     
    
    564 564
           for ( i = 0; i < num_grays; i++, table++ )
    
    565
    -        *table = (byte)i;
    
    565
    +        table[i] = (byte)i;
    
    566 566
     
    
    567
    -      memset( table, num_grays-1, 2*num_grays-1 );
    
    567
    +      memset( table+num_grays, num_grays-1, 2*num_grays-1 );
    
    568 568
     
    
    569 569
           gr_num_saturations++;
    
    570 570
           gr_last_saturation = sat;
    


  • reply via email to

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