[gimp] file-pnm: Wrap to 80 columns
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-pnm: Wrap to 80 columns
- Date: Sun, 18 Jan 2015 01:30:27 +0000 (UTC)
commit 013e943b6c17c7f49a3ee92cd93e416191fca75f
Author: Mukund Sivaraman <muks banu com>
Date: Sun Jan 18 06:55:56 2015 +0530
file-pnm: Wrap to 80 columns
plug-ins/common/file-pnm.c | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/plug-ins/common/file-pnm.c b/plug-ins/common/file-pnm.c
index a3fcbe1..3375bb5 100644
--- a/plug-ins/common/file-pnm.c
+++ b/plug-ins/common/file-pnm.c
@@ -602,12 +602,14 @@ load_image (GFile *file,
pnminfo->jmpbuf, _("Unsupported maximum value."));
}
- /* Create a new image of the proper size and associate the filename with it.
- */
- image_ID = gimp_image_new_with_precision (pnminfo->xres, pnminfo->yres,
- (pnminfo->np >= 3) ? GIMP_RGB : GIMP_GRAY,
- pnminfo->float_format ? GIMP_PRECISION_FLOAT_LINEAR
- : GIMP_PRECISION_U8_GAMMA);
+ /* Create a new image of the proper size and associate the filename
+ with it. */
+ image_ID = gimp_image_new_with_precision
+ (pnminfo->xres, pnminfo->yres,
+ (pnminfo->np >= 3) ? GIMP_RGB : GIMP_GRAY,
+ (pnminfo->float_format ?
+ GIMP_PRECISION_FLOAT_LINEAR : GIMP_PRECISION_U8_GAMMA));
+
gimp_image_set_filename (image_ID, g_file_get_uri (file));
layer_ID = gimp_layer_new (image_ID, _("Background"),
@@ -938,10 +940,11 @@ pnm_load_rawpfm (PNMScanner *scan,
data[x] = v.f;
}
- /* let's see if this is what people want, the PFM specs are a little vague
- * about what the scale factor should be used for */
+ /* let's see if this is what people want, the PFM specs are a
+ * little vague about what the scale factor should be used
+ * for */
data[x] *= fabsf (info->scale_factor);
- data[x] = fmaxf(0.0f, fminf(FLT_MAX, data[x]));
+ data[x] = fmaxf (0.0f, fminf (FLT_MAX, data[x]));
}
gegl_buffer_set (buffer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]