summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Gates <tim.gates@iress.com>2021-09-23 06:25:23 +1000
committerMike Frysinger <vapier@gmail.com>2021-09-23 01:13:40 -0400
commitf7e57be725f6022c91f84cc72555f1b69d263e23 (patch)
tree9070b3747e5195bd1c31bcb77e0109383e0a5c52
parent826e546256b97ffaa8a88409e0c26cccffb179f1 (diff)
downloadlibgd-f7e57be725f6022c91f84cc72555f1b69d263e23.tar.gz
docs: Fix a few typos
There are small typos in: - examples/copyrotated.c - src/gd.c - src/gd.h - src/gd_avif.c - src/gd_nnquant.c - src/gd_tga.c - src/gd_topal.c - src/wbmp.c - tests/avif/compare_avif_to_png.c Fixes: - Should read `requires` rather than `reqiures`. - Should read `of the` rather than `ofthe`. - Should read `memory` rather than `memmory`. - Should read `maximum` rather than `maxmum`. - Should read `intersection` rather than `intertersection`. - Should read `hypotenuse` rather than `hypothenus`. - Should read `flexibility` rather than `flexibilty`. - Should read `always` rather than `alwasy`. - Should read `also` rather than `alos`.
-rw-r--r--examples/copyrotated.c4
-rw-r--r--src/gd.c2
-rw-r--r--src/gd.h2
-rw-r--r--src/gd_avif.c2
-rw-r--r--src/gd_nnquant.c2
-rw-r--r--src/gd_tga.c2
-rw-r--r--src/gd_topal.c2
-rw-r--r--src/wbmp.c2
-rw-r--r--tests/avif/compare_avif_to_png.c2
9 files changed, 10 insertions, 10 deletions
diff --git a/examples/copyrotated.c b/examples/copyrotated.c
index 9006c0c..cb2b78b 100644
--- a/examples/copyrotated.c
+++ b/examples/copyrotated.c
@@ -51,8 +51,8 @@ int main(int argc, char **arg)
}
/*
- cos adj hyp (cos = adjacent / hypothenus)
- sin op hyp (sin adjacent / hypothenus)
+ cos adj hyp (cos = adjacent / hypotenuse)
+ sin op hyp (sin adjacent / hypotenuse)
+ 10 pixels margin
*/
diff --git a/src/gd.c b/src/gd.c
index fd8d1aa..574368c 100644
--- a/src/gd.c
+++ b/src/gd.c
@@ -3629,7 +3629,7 @@ BGD_DECLARE(void) gdImageOpenPolygon (gdImagePtr im, gdPointPtr p, int n, int c)
/* THANKS to Kirsten Schulz for the polygon fixes! */
/* The intersection finding technique of this code could be improved */
-/* by remembering the previous intertersection, and by using the slope. */
+/* by remembering the previous intersection, and by using the slope. */
/* That could help to adjust intersections to produce a nice */
/* interior_extrema. */
diff --git a/src/gd.h b/src/gd.h
index 51b9661..b033238 100644
--- a/src/gd.h
+++ b/src/gd.h
@@ -406,7 +406,7 @@ typedef double (* interpolation_method )(double, double);
<Accessor Macros>
(Previous versions of this library encouraged directly manipulating
- the contents ofthe struct but we are attempting to move away from
+ the contents of the struct but we are attempting to move away from
this practice so the fields are no longer documented here. If you
need to poke at the internals of this struct, feel free to look at
*gd.h*.)
diff --git a/src/gd_avif.c b/src/gd_avif.c
index 3e27dab..5935623 100644
--- a/src/gd_avif.c
+++ b/src/gd_avif.c
@@ -464,7 +464,7 @@ cleanup:
speed - At slower speeds, encoding may be quite slow. Use judiciously.
Qualities or speeds that are lower than the minimum value get clamped to the minimum value,
- and qualities or speeds that are lower than the maximum value get clamped to the maxmum value.
+ and qualities or speeds that are lower than the maximum value get clamped to the maximum value.
Note that AVIF_SPEED_DEFAULT is -1. If we ever set SPEED_DEFAULT = AVIF_SPEED_DEFAULT,
we'd want to add a conditional to ensure that value doesn't get clamped.
diff --git a/src/gd_nnquant.c b/src/gd_nnquant.c
index 8b9aa79..4a1864a 100644
--- a/src/gd_nnquant.c
+++ b/src/gd_nnquant.c
@@ -536,7 +536,7 @@ BGD_DECLARE(gdImagePtr) gdImageNeuQuant(gdImagePtr im, const int max_color, int
* This implementation works with aligned contiguous buffer only
* Upcoming new buffers are contiguous and will be much faster.
* let don't bloat this code to support our good "old" 31bit format.
- * It alos lets us convert palette image, if one likes to reduce
+ * It also lets us convert palette image, if one likes to reduce
* a palette
*/
if (overflow2(gdImageSX(im), gdImageSY(im))
diff --git a/src/gd_tga.c b/src/gd_tga.c
index 286febb..6b68447 100644
--- a/src/gd_tga.c
+++ b/src/gd_tga.c
@@ -237,7 +237,7 @@ int read_image_tga( gdIOCtx *ctx, oTga *tga )
if (tga->imagetype != TGA_TYPE_RGB && tga->imagetype != TGA_TYPE_RGB_RLE)
return -1;
- /*! \brief Allocate memmory for image block
+ /*! \brief Allocate memory for image block
* Allocate a chunk of memory for the image block to be passed into.
*/
tga->bitmap = (int *) gdMalloc(image_block_size * sizeof(int));
diff --git a/src/gd_topal.c b/src/gd_topal.c
index 5ac226a..b355e2d 100644
--- a/src/gd_topal.c
+++ b/src/gd_topal.c
@@ -1589,7 +1589,7 @@ static int gdImageTrueColorToPaletteBody (gdImagePtr oim, int dither, int colors
if (oim->paletteQuantizationMethod == GD_QUANT_NEUQUANT) {
- if (cimP) { /* NeuQuant alwasy creates a copy, so the new blank image can't be used */
+ if (cimP) { /* NeuQuant always creates a copy, so the new blank image can't be used */
gdImageDestroy(nim);
}
nim = gdImageNeuQuant(oim, colorsWanted, oim->paletteQuantizationSpeed ? oim->paletteQuantizationSpeed : 2);
diff --git a/src/wbmp.c b/src/wbmp.c
index 6f187f9..53a49d3 100644
--- a/src/wbmp.c
+++ b/src/wbmp.c
@@ -33,7 +33,7 @@
* Get a multibyte integer from a generic getin function
* 'getin' can be getc, with in = NULL
* you can find getin as a function just above the main function
- * This way you gain a lot of flexibilty about how this package
+ * This way you gain a lot of flexibility about how this package
* reads a wbmp file.
*/
int getmbi(int (*getin) (void *in), void *in)
diff --git a/tests/avif/compare_avif_to_png.c b/tests/avif/compare_avif_to_png.c
index 50a8041..7a188b5 100644
--- a/tests/avif/compare_avif_to_png.c
+++ b/tests/avif/compare_avif_to_png.c
@@ -2,7 +2,7 @@
* File: compare_avif_to_png
*
* Thorough check for AVIF encoding and decoding.
- * This test reqiures a set of PNG images that have been losslessly encoded to AVIFs.
+ * This test requires a set of PNG images that have been losslessly encoded to AVIFs.
* For each such image, we encode the PNG into an AVIF, with the GD format as an intermediary,
* then compare the resulting AVIF with the original PNG.
*