]> code.delx.au - refind/commitdiff
Fixed display glitch on first icon row when second row is empty.
authorsrs5694 <srs5694@users.sourceforge.net>
Mon, 5 Aug 2013 16:39:44 +0000 (12:39 -0400)
committersrs5694 <srs5694@users.sourceforge.net>
Mon, 5 Aug 2013 16:39:44 +0000 (12:39 -0400)
NEWS.txt
refind/main.c
refind/menu.c

index 016b9a556f5edcad45fa6964b9e1c37e73272b10..f8d30a19e3f7231d3e643c6c9b7d65dabd7f355b 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -1,6 +1,9 @@
 0.7.2 (?/??/2013):
 ------------------
 
+- Fixed bug that caused display glitches in the final entry on the first
+  row of icons if the second row of icons was empty.
+
 - Fixed bug that could cause incorrect scanning or even a rEFInd crash when
   using volume specification in also_scan_dirs token.
 
index f7e7616f41caee7e5991aad7951004b657338236..8cfc5d6bc0ac182b471c46beac5ae8eedeb73cb3 100644 (file)
@@ -147,7 +147,7 @@ static VOID AboutrEFInd(VOID)
 
     if (AboutMenu.EntryCount == 0) {
         AboutMenu.TitleImage = BuiltinIcon(BUILTIN_ICON_FUNC_ABOUT);
-        AddMenuInfoLine(&AboutMenu, L"rEFInd Version 0.7.1.2");
+        AddMenuInfoLine(&AboutMenu, L"rEFInd Version 0.7.1.3");
         AddMenuInfoLine(&AboutMenu, L"");
         AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2006-2010 Christoph Pfisterer");
         AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2012-2013 Roderick W. Smith");
index 40f26a19a841ec919644162725af04a9f936ae61..f4bfd5736ba68d7bed195058b1405ef8989dc618 100644 (file)
@@ -339,7 +339,7 @@ static VOID IdentifyRows(IN SCROLL_STATE *State, IN REFIT_MENU_SCREEN *Screen) {
 
    State->FinalRow0 = 0;
    State->InitialRow1 = State->MaxIndex;
-   for (i = 0; i < State->MaxIndex; i++) {
+   for (i = 0; i <= State->MaxIndex; i++) {
       if (Screen->Entries[i]->Row == 0) {
          State->FinalRow0 = i;
       } else if ((Screen->Entries[i]->Row == 1) && (State->InitialRow1 > i)) {