diff options
author | Paulo Alcantara <pcacjr@zytor.com> | 2012-05-19 01:58:03 -0300 |
---|---|---|
committer | Paulo Alcantara <pcacjr@zytor.com> | 2012-05-19 02:05:38 -0300 |
commit | 4fc3fd1e14f4c1b9208ef262e5b6aef853e9fce4 (patch) | |
tree | 4c51d9d8472e35fbbf7494250554e99f952d9c72 /core/font.c | |
parent | f631d78263f17436bda5ae27d7e4eff75981e31f (diff) | |
download | syslinux-4fc3fd1e14f4c1b9208ef262e5b6aef853e9fce4.tar.gz |
graphics: make use of syslinux_force_text_mode()
The syslinux_force_text_mode() function used in library
space made unnecessary INT 0x22 call that could be simply
used with vgaclearmode() function.
This patche renames vgaclearmode() to
syslinux_force_text_mode() as this naming is generally more
carefully considered and gets rid of "forcetext.c" source
file.
Also all the VGA-related functions and variables that were
exported in core/include/bios.h have been moved out to
core/include/graphics.h which makes more sense actually.
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
Diffstat (limited to 'core/font.c')
-rw-r--r-- | core/font.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/font.c b/core/font.c index 1fcbbe83..3533d80b 100644 --- a/core/font.c +++ b/core/font.c @@ -21,13 +21,14 @@ #include <sys/io.h> #include <stdio.h> #include <fs.h> + #include "bios.h" +#include "graphics.h" #include "core.h" char fontbuf[8192]; char serial[serial_buf_size]; -extern uint16_t VGAFontSize; extern uint8_t UserFont; uint16_t GXPixCols = 1; /* Graphics mode pixel columns */ @@ -107,10 +108,9 @@ void use_font(void) com32sys_t ireg, oreg; uint8_t bytes = VGAFontSize; - /* Nonstandard mode? */ if (UsingVGA & ~0x3) - vgaclearmode(); + syslinux_force_text_mode(); memset(&ireg, 0, sizeof(ireg)); |