diff options
author | Erwan Velu <erwanaliasr1@gmail.com> | 2011-02-06 23:54:26 +0100 |
---|---|---|
committer | Erwan Velu <erwanaliasr1@gmail.com> | 2011-02-06 23:54:26 +0100 |
commit | 9716800d675364ff18112a25f8d6adea2c341e2f (patch) | |
tree | 78a53f07e35b67d54b4eb388afb25a2ac50a23d9 /com32 | |
parent | d1a9c28083fc3176bc6ae3908fcd038634337bf7 (diff) | |
download | syslinux-9716800d675364ff18112a25f8d6adea2c341e2f.tar.gz |
lua: removing duplicated code from vesa.c
This code was static and unused. At least, if we need it let's reuse the
code from the vesa lib.
Diffstat (limited to 'com32')
-rw-r--r-- | com32/lua/src/vesa.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/com32/lua/src/vesa.c b/com32/lua/src/vesa.c index f09faf3f..75911199 100644 --- a/com32/lua/src/vesa.c +++ b/com32/lua/src/vesa.c @@ -10,28 +10,6 @@ int vesacon_load_background(const char *filename); -static int __constfunc is_power_of_2(unsigned int x) -{ - return x && !(x & (x-1)); -} - -static int vesacon_paged_mode_ok(const struct vesa_mode_info *mi) -{ - int i; - - if (!is_power_of_2(mi->win_size) || - !is_power_of_2(mi->win_grain) || - mi->win_grain > mi->win_size) - return 0; /* Impossible... */ - - for (i = 0; i < 2; i++) { - if ((mi->win_attr[i] & 0x05) == 0x05 && mi->win_seg[i]) - return 1; /* Usable window */ - } - - return 0; /* Nope... */ -} - static int vesa_getmodes(lua_State *L) { com32sys_t rm; |