IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5701


Ignore:
Timestamp:
Dec 5, 2005, 4:01:24 PM (21 years ago)
Author:
eugene
Message:

minor fixes

Location:
trunk/Ohana/src/kii
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kii/button/PSit.c

    r5700 r5701  
    113113}
    114114
     115# if (0)
    115116void ConvertPixmap (Layout *layout, File *f) {
    116117 
     
    239240  }
    240241}
     242# endif
    241243
    242244void ConvertPixmap8 (Layout *layout, FILE *f) {
  • trunk/Ohana/src/kii/colorbar/SetColormap.c

    r5700 r5701  
    1010  /* greyscale */
    1111  if ((!strcmp (name, "grayscale")) || (!strcmp (name, "greyscale"))) {
    12     fprintf (stderr, "setting greyscale : %d\n", layout[0].Npixels);
    1312    for (i = 0; i < layout[0].Npixels; i++) { 
    1413      layout[0].cmap[i].red = 256*(255 - 255*i/layout[0].Npixels);
     
    9089  if (!USE_XWINDOW) return (TRUE);
    9190  if (graphic[0].visualclass) {
    92     fprintf (stderr, "storing colors\n");
    9391    XStoreColors(graphic[0].display, graphic[0].colormap, layout[0].cmap, layout[0].Npixels);
    9492  } else {
    9593    for (i = 0; i < layout[0].Npixels; i++) {
    96       fprintf (stderr, "%04x %04x %04x  ->  ", layout[0].cmap[i].red, layout[0].cmap[i].green, layout[0].cmap[i].blue);
    9794      if (XAllocColor (graphic[0].display, graphic[0].colormap, &layout[0].cmap[i]) == 0) {
    9895        fprintf (stderr, "error on %d\n", i);
    9996      }
    100       fprintf (stderr, "%04x %04x %04x\n", layout[0].cmap[i].red, layout[0].cmap[i].green, layout[0].cmap[i].blue);
    10197    }
    10298  }
Note: See TracChangeset for help on using the changeset viewer.