Changeset 2813 for libpipi


Ignore:
Timestamp:
Sep 1, 2008, 1:06:00 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • ordered.c: r means radius, not diameter.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/dither/ordered.c

    r2812 r2813  
    3030#define PRECISION 4.
    3131    pipi_image_t *ret, *kernel;
    32     int k = (r * PRECISION / sqrt(2.) + .5);
     32    int k = (r * PRECISION / 2. / sqrt(2.) + .5);
    3333
    3434    kernel = pipi_render_halftone(k, k);
Note: See TracChangeset for help on using the changeset viewer.