* term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one

error.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2010-05-05 18:44:02 +02:00
1 parent 2bf6012d7f
commit a7fc080b56
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
* term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
error.
2010-05-05 Vladimir Serbinenko <phcoder@gmail.com> 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
* term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
+1 -1
View File
@@ -327,7 +327,7 @@ grub_ofconsole_getkey (void)
static grub_uint16_t static grub_uint16_t
grub_ofconsole_getxy (void) grub_ofconsole_getxy (void)
{ {
return ((grub_curr_x - 1) << 8) | grub_curr_y; return (grub_curr_x << 8) | grub_curr_y;
} }
static void static void