diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-12-28 01:09:14 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-12-28 01:09:14 +0000 |
commit | aff215cc29a295b7bdcc604ae1e71c5514113c29 (patch) | |
tree | 57d963c2047f0f4ee666035c93857f2a5991d162 /generator | |
parent | 903b4c784afe71fa323e5e4ae65e3a7605f51eee (diff) | |
download | netpbm-mirror-aff215cc29a295b7bdcc604ae1e71c5514113c29.tar.gz netpbm-mirror-aff215cc29a295b7bdcc604ae1e71c5514113c29.tar.xz netpbm-mirror-aff215cc29a295b7bdcc604ae1e71c5514113c29.zip |
Promote Development to Advanced as Release 10.93.00
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4017 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'generator')
-rw-r--r-- | generator/ppmrough.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/generator/ppmrough.c b/generator/ppmrough.c index 626ee989..c87a0364 100644 --- a/generator/ppmrough.c +++ b/generator/ppmrough.c @@ -37,6 +37,7 @@ struct CmdlineInfo { }; + static void parseCommandLine(int argc, const char ** argv, struct CmdlineInfo * const cmdlineP) { @@ -91,7 +92,7 @@ static void procLeft(int const r1, int const r2, int const c1, - int const c2, + int const c2, unsigned int const var) { int cm, rm, c; @@ -220,7 +221,7 @@ main(int argc, const char * argv[]) { fg_blue = PPM_GETB(fgcolor); if (cmdline.verbose) { - pm_message("width is %d, height is %d, variance is %d.", + pm_message("width is %d, height is %d, variance is %d.", cols, rows, cmdline.var); if (left >= 0) pm_message("ragged left border is required"); @@ -278,7 +279,7 @@ main(int argc, const char * argv[]) { for (col = right_c2; col < cols; col++) PPM_ASSIGN(PIX[right_r2][col], BG_RED, BG_GREEN, BG_BLUE); - procRight(right_r1, right_r2, right_c1, right_c2, + procRight(right_r1, right_r2, right_c1, right_c2, cmdline.width, cmdline.var); } @@ -313,7 +314,7 @@ main(int argc, const char * argv[]) { for (row = bottom_r2; row < rows; ++row) PPM_ASSIGN(PIX[row][bottom_c2], BG_RED, BG_GREEN, BG_BLUE); - procBottom(bottom_c1, bottom_c2, bottom_r1, bottom_r2, + procBottom(bottom_c1, bottom_c2, bottom_r1, bottom_r2, cmdline.height, cmdline.var); } |