Ignore:
Timestamp:
Aug 16, 2008, 2:53:50 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • color.c: implement pipi_brightness() and pipi_contrast().
  • pipi.c: add --brightness and --contrast.
File:
1 edited

Legend:

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

    r2718 r2725  
    7070            if(pipi_command(ctx, "gray") != 0)
    7171                return EXIT_FAILURE;
     72        }
     73        else if(!strcmp(argv[0], "--brightness"))
     74        {
     75            if(argv[1] == NULL)
     76                return EXIT_FAILURE;
     77            if(pipi_command(ctx, "brightness", argv[1]) != 0)
     78                return EXIT_FAILURE;
     79            argv++;
     80        }
     81        else if(!strcmp(argv[0], "--contrast"))
     82        {
     83            if(argv[1] == NULL)
     84                return EXIT_FAILURE;
     85            if(pipi_command(ctx, "contrast", argv[1]) != 0)
     86                return EXIT_FAILURE;
     87            argv++;
    7288        }
    7389        else if(!strcmp(argv[0], "--autocontrast"))
Note: See TracChangeset for help on using the changeset viewer.