| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Save a few bytes by merging the very similar BIOS read and BIOS write
functions.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
| |
Use libpci to access PCI config space. This *hopefully* will make it
less likely that some old machine hangs when failing to set the
requested video mode.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If we specify a smaller image than the screen size, tile it across the
screen rather than leaving a big black box. This may have to be made
configurable.
Also note that Syslinux currently does not handle the case of an image
bleeding off the end of the screen.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| | |
Add a library function for DNS lookup
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|\| |
|
| |
| |
| |
| |
| |
| | |
"vga=current" is a user-friendly synonym for "vga=0x0f04".
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|/
|
|
|
|
|
| |
Add some code from the tool "915resolution" to allow arbitrary
resolutions to be set on some Intel chipsets.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
Remove unused variable, thus removing a warning.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
Fix a signed/unsigned warning in crc32.c.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
| |
The external prototype for __vesacon_open() was incorrect; this is a
good example of why external prototypes are bad, incidentally.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
The & is incorrect... not actively harmful, but generates a warning.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
|
| |
ALIGN_UP_FOR() returns the type of the original pointer, but we want
it to be the type that we're actually going to use. Perhaps
ALIGN_UP_FOR() should be changed, but for now, just add the proper
cast.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
Intentional cross-signedness pointer passing, add a cast.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
fdopendir() is a stub, and probably will remain such.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
chdir() is a stub at the moment... to be fixed in Syslinux 4.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
Shut up a warning about initializing pointer across signedness.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
Missing #include <stdlib.h>, nested comment in readdir.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
|
| |
Replace -W -Wall hardcoded into a bunch of Makefiles with $(GCCWARN),
a centralized variable defined in the root MCONFIG. Add
-Wstrict-prototypes to the list of global warnings: we should never
have non-prototyped declarations.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
| |
() means the same as (...) in C, not the same as (void) as it does in
C++. It is generally misused to mean (void), though. Actually write
what we mean... this is C, after all.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
| |
syslinux_report_video_mode() never gave a return value, to have it
return void unless we need something else.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
Code formatting fix in screencpy.c
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
Unbreak the default background image; it would clobber all of memory.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
| |
Implement long-since-promised video functions defined in
<syslinux/video.h>. Use these functions in initvesa.c instead of
open-coding the same functionality.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
|
| |
Don't display the cursor on the graphical screen while doing a quiet
boot. When doing a quiet boot we will probably show the graphical
screen for a fair bit of time; as a result, we really don't want a
completely bogus cursor blob on the bottom of the screen.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Make it possible to request nonstandard resolutions when enabling
vesacon.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| | |
There are a fair number of valid JPEG images which we can validly
decode that aren't JFIF-complient, so don't require the JFIF header.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| | |
Actually build the yuv420p converter again.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| | |
Fix the yuv420p in the presence of partial pixels (if we have an odd
number of pixels in this mode, we include the chroma pixel.)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| | |
Drop the hard-coding of 640x480 resolution in preparation for being
able to handle other resolutions.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| | |
A lot of common resolutions, e.g. 800x600, include partial blocks at
the side of the image. Implement that properly.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| | |
There are already screens on the market which are bigger than 2048
wide...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| | |
Update tinyjpeg to upstream version 20070609.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Impact: avoid kernel modules duplication
In modules.pcimap, kernel modules name are featuring '_' or '-' whereas modules.alias is only using '_'.
To avoid kernel modules duplication, let's rename all '-' by '_' to match what modules.alias provides
This avoid stupid duplications like "a-b" & "a_b" whereas they are in
fact the same kernel module
|
| |
| |
| |
| |
| |
| | |
Impact: avoid code duplication
This will make code more generic, hdt will need it ;)
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Close the file descriptor (freeing the file structure) when opening a
file fails.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fix an uninitialized pointer bug; return void rather than returning
int like normal printfs... if we're depending on the return value of a
debugging function we're screwed when debugging is disabled.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fix incorrect prototype for vdprintf() used in dprintf(), masked by
the non-use of the header file.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Actually provide real infrastructure for debug-to-serial. Very
useful when debugging fullscreen applications, especially under an
emulator like Qemu.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|/ /
| |
| |
| |
| |
| |
| | |
Impact: allow to open gzipped files
This commit allow people using gzipped files
(pci.ids/modules.pcimap/modules.alias)
|
| |
| |
| |
| |
| |
| | |
Impact: None
The kernel module count is set to zero when the dev_info is allocated.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Impact: Prevent duplicated modules
If both get_module_name_from_pcimap() & get_module_name_from_alias()
are called, we didn't checked if the module we are detecting already got
detected. This leads to a situation where modules got listed twice.
This patch add a test to insure that we aren't adding an already
detected module.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit e9b317fd0dc87dc93a49bc40520f4bdd0264d746.
(This commit breaks vesamenu, and $DEITY knows what else.)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There was a bug in HDT when switching from the menu to the cli and
back to the menu: the background wasn't redrawn.
This was due to the fact that the cli bypasses the libansi library
and calls printf() directly. Unfortunately, the SGR attributes were
cached between menu initializations and the background wasn't properly
redrawn.
To fix it, invalidate the cache in the cls() routine. cls() does much
more than just erasing the screen already (e.g. initialize G1) - we
may want to rename the function at some point.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When resetting the attributes, we were updating last_attr to the unknown value
0x300, which doesn't always work.
For instance, when requesting reset and normal attributes, i.e.
"\e[0;30;47m" with the previous attribute being "\e[1;30;47m", we where printing
"\e[0;47m", which behaves like "\e[0;39;47m". This is incorrect.
This patch adds a flag to explicitly set background and foreground colors after
a reset.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |
| |
| |
| |
| |
| | |
cprint_vga2ansi takes only a char, not a string.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |
| |
| |
| |
| |
| | |
Purpose of reset_colors is to reset the attribute to VGA 0x07.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add support for nowrap mode CSI ? 7 l (unfortunately, on ANSI.SYS it
is CSI = 7 l; which means that the only way to support both is to
print both sequences and then erase the resulting garbage.)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|