Lines Matching defs:logical
43 LOGPALETTE *logical;
60 /* allocate a bunch of memory for the logical palette (assume 256
62 logical = (LOGPALETTE*)malloc(sizeof(LOGPALETTE) +
64 memset(logical, 0, sizeof(LOGPALETTE) + sizeof(PALETTEENTRY) * n);
66 /* set the entries in the logical palette */
67 logical->palVersion = 0x300;
68 logical->palNumEntries = n;
71 GetSystemPaletteEntries(XHDC, 0, 256, &logical->palPalEntry[0]);
81 logical->palPalEntry[i].peRed =
83 logical->palPalEntry[i].peGreen =
85 logical->palPalEntry[i].peBlue =
87 logical->palPalEntry[i].peFlags = 0;
91 palette = CreatePalette(logical);
92 free(logical);
143 /* if the third parameter is FALSE, the logical colormap is copied