/* ----------------------------------------------------------------------- *
- *
+ *
* Copyright 2007 H. Peter Anvin - All Rights Reserved
*
* Permission is hereby granted, free of charge, to any person
* sell copies of the Software, and to permit persons to whom
* the Software is furnished to do so, subject to the following
* conditions:
- *
+ *
* The above copyright notice and this permission notice shall
* be included in all copies or substantial portions of the Software.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
int vesacon_set_background(unsigned int);
#endif /* _SYSLINUX_VESACON_H */
-
-
-
syslinux/shuffle_rm.o syslinux/zonelist.o \
syslinux/dump_mmap.o syslinux/dump_movelist.o \
\
- syslinux/run_default.o syslinux/run_command.o \
+ syslinux/run_default.o syslinux/run_command.o \
syslinux/cleanup.o syslinux/localboot.o syslinux/runimage.o \
\
syslinux/loadfile.o \
if (!fp)
goto err;
-
+
if (fread(header, 1, 8, fp) != 8)
goto err;
-
+
if (!png_sig_cmp(header, 0, 8)) {
rv = read_png_file(fp);
} else if (!jpeg_sig_cmp(header, 8)) {
/* This actually displays the stuff */
draw_background();
-
+
err:
if (fp)
fclose(fp);
-
+
return rv;
}
/* Converting PC RGBI to sensible RGBA values is an "interesting"
proposition. This algorithm may need plenty of tweaking. */
-
+
fga = fg & 0xff000000;
fgh = ((fg >> 1) & 0xff000000) | 0x80000000;
if (cp->ansi)
free((void *)cp->ansi);
-
+
asprintf((char **)&cp->ansi, "%s3%d;4%d", (i & 8) ? "1;" : "",
pc2ansi[i & 7], pc2ansi[(i >> 4) & 7]);
case KEY_F12: fkey = 11; break;
default: fkey = -1; break;
}
-
+
if (fkey == -1)
break;
if (*p) {
if (!looking_at(p, "*"))
fg_mask = parse_argb(&p);
-
+
p = skipspace(p);
if (*p) {
if (!looking_at(p, "*"))