IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 5, 2005, 3:55:45 PM (21 years ago)
Author:
eugene
Message:

adding no-X version of JPEG, other features

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kii/setup/DefineLayout.c

    r5637 r5700  
    11# include "Ximage.h"
     2
     3static char default_colormap[] = "grayscale";
    24
    35void DefineLayout (Layout *layout, Graphic *graphic, int argc, char **argv) {
     
    57  int i, status, N;
    68  struct sockaddr_un Address;
    7   char temp[100];
     9  char temp[100], *temp_name;
    810
    911  /** initiate connection with mana **/
     
    2931 
    3032  /* get the display colors */
    31   MakeColormap (graphic, layout, argc, argv);
     33  if (USE_XWINDOW) {
     34    MakeColormap (graphic, layout, argc, argv);
     35  } else {
     36    temp_name = default_colormap;
     37    if ((N = get_argument (argc, argv, "-cm"))) {
     38      remove_argument (N, &argc, argv);
     39      temp_name = argv[N];
     40    }
     41    layout[0].Npixels = 256;
     42    SetColormap (graphic, layout, temp_name);
     43  }
    3244
    3345  /** set up a bunch of default things **/
     
    5163  ALLOCATE (layout[0].zoom.data, char, 1);      /* allocate so later free will not crash! */
    5264
    53   CreatePicture (layout, graphic);
    54   CreateColorbar (layout, graphic);
    55   CreateZoom (layout, graphic, 0, 0);
     65  if (USE_XWINDOW) {
     66    CreatePicture (layout, graphic);
     67    CreateColorbar (layout, graphic);
     68    CreateZoom (layout, graphic, 0, 0);
     69  }
    5670}
    5771
Note: See TracChangeset for help on using the changeset viewer.