summaryrefslogtreecommitdiff
path: root/pngrtran.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2011-05-07 21:23:43 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2011-05-07 21:23:43 -0500
commitc7822514cc81427e44485a8638114068f55ba89d (patch)
treedbf751772520c842dc75f5eaf5c4e60ce5f1b1cb /pngrtran.c
parentd273ad2d0f183ee27fc2be043ff1d2f890cf0162 (diff)
downloadlibpng-c7822514cc81427e44485a8638114068f55ba89d.tar.gz
[devel] Fix typos in comments, add new API synopses to libpng.3
Diffstat (limited to 'pngrtran.c')
-rw-r--r--pngrtran.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pngrtran.c b/pngrtran.c
index 7c9c5518d..bc818f554 100644
--- a/pngrtran.c
+++ b/pngrtran.c
@@ -196,7 +196,7 @@ png_set_alpha_mode_fixed(png_structp png_ptr, int mode,
else if (output_gamma < 70000 || output_gamma > 300000)
png_error(png_ptr, "output gamma out of expected range");
- /* The default file gamma is the inverse of the output gamma, the output
+ /* The default file gamma is the inverse of the output gamma; the output
* gamma may be changed below so get the file value first:
*/
file_gamma = png_reciprocal(output_gamma);
@@ -260,7 +260,7 @@ png_set_alpha_mode_fixed(png_structp png_ptr, int mode,
/* But always set the output gamma: */
png_ptr->screen_gamma = output_gamma;
- /* Finally, if pre-multiplying, set the background fields to achive the
+ /* Finally, if pre-multiplying, set the background fields to achieve the
* desired result.
*/
if (compose)
@@ -1540,7 +1540,7 @@ png_init_read_transformations(png_structp png_ptr)
/* Prevent the transformations being done again.
*
- * NOTE: this is highly dubious, it zaps the transformations in
+ * NOTE: this is highly dubious; it zaps the transformations in
* place. This seems inconsistent with the general treatment of the
* transformations elsewhere.
*/
@@ -1893,7 +1893,7 @@ png_do_read_transformations(png_structp png_ptr)
png_error(png_ptr, "NULL row buffer");
}
- /* The following is debugging, prior to 1.5.3 the code was never compiled in,
+ /* The following is debugging; prior to 1.5.3 the code was never compiled in;
* in 1.5.3 PNG_FLAG_DETECT_UNINITIALIZED was added and the macro
* PNG_WARN_UNINITIALIZED_ROW removed. In 1.5 the new flag is set only for
* selected new APIs to ensure that there is no API change.