aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu/vesamenu.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-12-07 16:18:09 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-12-07 16:18:09 -0800
commite74de874126e4864dcbe88e4526180a6432d8811 (patch)
tree85a02441a47fc3f23851d01950d22bf527ef7ed5 /com32/menu/vesamenu.c
parent469735a321138e519106e3d1dd16acd3be0cc024 (diff)
downloadsyslinux.git-e74de874126e4864dcbe88e4526180a6432d8811.tar.gz
syslinux.git-e74de874126e4864dcbe88e4526180a6432d8811.tar.xz
syslinux.git-e74de874126e4864dcbe88e4526180a6432d8811.zip
vesamenu: add MENU RESOLUTION to be able to set nonstandard res
Add a MENU RESOLUTION command to make it possible to set a nonstandard resolution. If the nonstandard resolution is unavailable, we revert to the text mode screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/menu/vesamenu.c')
-rw-r--r--com32/menu/vesamenu.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/com32/menu/vesamenu.c b/com32/menu/vesamenu.c
index df5c94a6..22b46235 100644
--- a/com32/menu/vesamenu.c
+++ b/com32/menu/vesamenu.c
@@ -1,6 +1,7 @@
/* ----------------------------------------------------------------------- *
*
* Copyright 2004-2008 H. Peter Anvin - All Rights Reserved
+ * Copyright 2009 Intel Corporation; author: H. Peter Anvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -35,8 +36,12 @@ int draw_background(const char *what)
return vesacon_load_background(what);
}
-int main(int argc, char *argv[])
+void set_resolution(int x, int y)
+{
+ vesacon_set_resolution(x, y);
+}
+
+void start_console(void)
{
openconsole(&dev_rawcon_r, &dev_vesaserial_w);
- return menu_main(argc, argv);
}