diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-09-12 20:03:54 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-09-12 20:03:54 -0700 |
commit | f12313f310db53a9d85df09acb0ca045849d2205 (patch) | |
tree | db146853866d5f7e4e509a837d1433e9c1db5d0e /com32/samples/vesa.c | |
parent | 827de355148a6dae20c76e1cfb23fa0d8cd57149 (diff) | |
download | syslinux-elf-f12313f310db53a9d85df09acb0ca045849d2205.tar.gz syslinux-elf-f12313f310db53a9d85df09acb0ca045849d2205.tar.xz syslinux-elf-f12313f310db53a9d85df09acb0ca045849d2205.zip |
Remove VESA demo and function used only by it
Diffstat (limited to 'com32/samples/vesa.c')
-rw-r--r-- | com32/samples/vesa.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/com32/samples/vesa.c b/com32/samples/vesa.c deleted file mode 100644 index 159a55d7..00000000 --- a/com32/samples/vesa.c +++ /dev/null @@ -1,31 +0,0 @@ -#include <stdio.h> -#include <inttypes.h> -#include "../lib/sys/vesa/video.h" - -int __vesacon_init(void); -void vesacon_write_at(int row, int col, const char *str, uint8_t attr, int rev); - -int main(void) -{ - int row, col; - int attr; - char attr_buf[16]; - - __vesacon_init(); - vesacon_load_background("stacy.png"); - - row = col = 0; - - for (attr = 0; attr < 256; attr++) { - snprintf(attr_buf, sizeof attr_buf, " [%02X] ", attr); - __vesacon_write_at(row, col, attr_buf, attr, attr & 3); - row++; - if (row >= 29) { - row = 0; - col += 8; - } - } - - while (1) - asm volatile("hlt"); -} |