[GRASS-SVN] r40958 - grass/trunk/lib/ogsf
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 12 23:40:07 EST 2010
Author: glynn
Date: 2010-02-12 23:40:07 -0500 (Fri, 12 Feb 2010)
New Revision: 40958
Modified:
grass/trunk/lib/ogsf/gsd_img_ppm.c
Log:
Use convential PPM header (magic, width/height, maxval on separate lines)
Modified: grass/trunk/lib/ogsf/gsd_img_ppm.c
===================================================================
--- grass/trunk/lib/ogsf/gsd_img_ppm.c 2010-02-13 04:39:05 UTC (rev 40957)
+++ grass/trunk/lib/ogsf/gsd_img_ppm.c 2010-02-13 04:40:07 UTC (rev 40958)
@@ -54,7 +54,7 @@
return (1);
}
- fprintf(fp, "P6 %d %d 255\n", xsize, ysize);
+ fprintf(fp, "P6\n%d %d\n255\n", xsize, ysize);
for (y = ysize - 1; y >= 0; y--) {
for (x = 0; x < xsize; x++) {
@@ -97,7 +97,7 @@
return (1);
}
- fprintf(fp, "P6 %d %d 255\n", xsize, ysize);
+ fprintf(fp, "P6\n%d %d\n255\n", xsize, ysize);
for (y = ysize - 1; y >= 0; y--) {
for (x = 0; x < xsize; x++) {
More information about the grass-commit
mailing list