diff options
Diffstat (limited to 'fontconvert/random.c')
-rw-r--r-- | fontconvert/random.c | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/fontconvert/random.c b/fontconvert/random.c index 00d67b1..9ed695c 100644 --- a/fontconvert/random.c +++ b/fontconvert/random.c @@ -1,20 +1,20 @@ -/* random.c: distort a bitmap. - -Copyright (C) 1992, 2011 Free Software Foundation, Inc. - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3, or (at your option) -any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +# random.c: distort a bitmap. +# +# Copyright (C) 1992, 2011 Free Software Foundation, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# #include "config.h" @@ -30,8 +30,6 @@ real random_threshold = 0.2; static bitmap_type enlarge_bitmap (bitmap_type, int, int); static real random_number (void); - - /* Randomize the bitmap B by moving each black pixel a randomly chosen distance between -random_max and random_max (both horizontally and vertically). Return the enlargement of B on all four side in ADJUST. @@ -144,7 +142,6 @@ enlarge_bitmap (bitmap_type b, int row_delta, int col_delta) } - /* Return a random number between -random_max and random_max. */ static real |