Browse Source

engine: imagelib: img_quant: fix a bug in quantizer (thanks, @SNMetamorph for fix)

pull/2/head
Alibek Omarov 2 years ago
parent
commit
49a65edfc3
  1. 2
      engine/common/imagelib/img_quant.c

2
engine/common/imagelib/img_quant.c

@ -408,7 +408,7 @@ void learn( void )
if( rad ) alterneigh( rad, j, r, g, b ); // alter neighbours if( rad ) alterneigh( rad, j, r, g, b ); // alter neighbours
p += step; p += step;
if( p >= lim ) p -= lengthcount; while( p >= lim ) p -= lengthcount;
i++; i++;

Loading…
Cancel
Save