• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcl-105/tk84/tk/win/

Lines Matching refs:cmap

346     TkWinColormap *cmap = (TkWinColormap *) colormap;
367 index = GetNearestPaletteIndex(cmap->palette, newPixel);
368 GetPaletteEntries(cmap->palette, index, 1, &closeEntry);
382 if ((index >= cmap->size) || (newPixel != closePixel)) {
383 if (cmap->size == sizePalette) {
388 if (index >= cmap->size) {
392 cmap->size++;
393 ResizePalette(cmap->palette, cmap->size);
394 SetPaletteEntries(cmap->palette, cmap->size - 1, 1, &entry);
399 entryPtr = Tcl_CreateHashEntry(&cmap->refCounts,
450 TkWinColormap *cmap = (TkWinColormap *) colormap;
469 entryPtr = Tcl_FindHashEntry(&cmap->refCounts,
477 index = GetNearestPaletteIndex(cmap->palette, cref);
478 GetPaletteEntries(cmap->palette, index, 1, &entry);
480 count = cmap->size - index;
483 GetPaletteEntries(cmap->palette, index+1, count, entries);
484 SetPaletteEntries(cmap->palette, index, count, entries);
486 cmap->size--;
526 TkWinColormap *cmap;
542 cmap = (TkWinColormap *) ckalloc(sizeof(TkWinColormap));
543 cmap->size = logPalettePtr->palNumEntries;
544 cmap->stale = 0;
545 cmap->palette = CreatePalette(logPalettePtr);
551 Tcl_InitHashTable(&cmap->refCounts, TCL_ONE_WORD_KEYS);
554 hashPtr = Tcl_CreateHashEntry(&cmap->refCounts, (char*) PALETTERGB(
559 return (Colormap)cmap;
586 TkWinColormap *cmap = (TkWinColormap *) colormap;
587 if (!DeleteObject(cmap->palette)) {
590 Tcl_DeleteHashTable(&cmap->refCounts);
591 ckfree((char *) cmap);
619 TkWinColormap *cmap = (TkWinColormap *) colormap;
622 oldPalette = SelectPalette(dc, cmap->palette,
623 (cmap->palette == TkWinGetSystemPalette()) ? FALSE : TRUE);