Home | History | Annotate | Download | only in windib

Lines Matching refs:pal

901 static int FindPaletteIndex(LOGPALETTE *pal, BYTE r, BYTE g, BYTE b)
905 int nentries = pal->palNumEntries;
908 entry = &pal->palPalEntry[i];
916 static BOOL CheckPaletteEntry(LOGPALETTE *pal, int index, BYTE r, BYTE g, BYTE b)
921 entry = &pal->palPalEntry[index];
923 int found = FindPaletteIndex(pal, r, g, b);
925 pal->palPalEntry[found] = *entry;
941 RGBQUAD *pal;
985 pal = SDL_stack_alloc(RGBQUAD, ncolors);
987 pal[i].rgbRed = colors[i].r;
988 pal[i].rgbGreen = colors[i].g;
989 pal[i].rgbBlue = colors[i].b;
990 pal[i].rgbReserved = 0;
996 SetDIBColorTable(mdc, firstcolor, ncolors, pal);
1002 SDL_stack_free(pal);