} /* EG_IMAGE * LoadOSIcon() */
-// Load an image from a .icns or .png file. FileNames contains a comma-delimited
-// list of potential filanems; the function tries each in turn until it finds
-// a loadable icon. If no file has a valid icon, it returns NULL.
-EG_IMAGE * LoadIcns(IN EFI_FILE_HANDLE BaseDir, IN CHAR16 *FileNames, IN UINTN PixelSize) {
- CHAR16 *FileName;
- EG_IMAGE *Image = NULL;
- UINTN Index = 0;
-
- if (GlobalConfig.TextOnly) // skip loading if it's not used anyway
- return NULL;
-
- while (((FileName = FindCommaDelimited(FileNames, Index++)) != NULL) && (Image == NULL)) {
- Image = egLoadIcon(BaseDir, FileName, PixelSize);
- }
- return Image;
-} // EG_IMAGE * LoadIcns()
-
static EG_PIXEL BlackPixel = { 0x00, 0x00, 0x00, 0 };
//static EG_PIXEL YellowPixel = { 0x00, 0xff, 0xff, 0 };