diff options
Diffstat (limited to 'generator')
-rw-r--r-- | generator/pbmpage.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generator/pbmpage.c b/generator/pbmpage.c index 68e20448..a2f47bcc 100644 --- a/generator/pbmpage.c +++ b/generator/pbmpage.c @@ -238,6 +238,11 @@ main(int argc, const char** argv) { Height = USHEIGHT; } + if (argc > 1) + TP = atoi(argv[1]); + else + TP = 1; + bitmap.Width = Width; bitmap.Height = Height; bitmap.bitmap = pbm_allocarray_packed(Width, bitmap.Height); @@ -248,11 +253,6 @@ main(int argc, const char** argv) { bitmap.bitmap[y][x] = 0x00; } - if (argc > 1) - TP = atoi(argv[1]); - else - TP = 1; - switch (TP) { case 1: framePerimeter(Width, Height); |