Ignore:
Timestamp:
Aug 14, 2008, 8:34:51 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Add the --scale flag. Resizes the image like --geometry, except with relative parameters.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/src/pipi.c

    r2712 r2716  
    2525            if(pipi_command(ctx, "swap") != 0)
    2626                return EXIT_FAILURE;
     27        }
     28        else if(!strcmp(argv[0], "--scale"))
     29        {
     30            if(argv[1] == NULL)
     31                return EXIT_FAILURE;
     32            if(pipi_command(ctx, "scale", argv[1]) != 0)
     33                return EXIT_FAILURE;
     34            argv++;
    2735        }
    2836        else if(!strcmp(argv[0], "--geometry"))
Note: See TracChangeset for help on using the changeset viewer.