]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 5 May 2010 16:44:02 +0000 (18:44 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 5 May 2010 16:44:02 +0000 (18:44 +0200)
error.

ChangeLog
term/ieee1275/ofconsole.c

index 2cfed5f1ef55506a1d7fa664b392d2de28450505..6a8b7af7d0825ab6a3fa076156bcf1f78ba5ecbb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
index 26a43bdf4f8bbd0c91dfe5fc8687c6c3ce804113..898f9ceab5da5fbbc3f00d798eac30a0fe3d9232 100644 (file)
@@ -327,7 +327,7 @@ grub_ofconsole_getkey (void)
 static grub_uint16_t
 grub_ofconsole_getxy (void)
 {
-  return ((grub_curr_x - 1) << 8) | grub_curr_y;
+  return (grub_curr_x << 8) | grub_curr_y;
 }
 
 static void