From: srs5694 Date: Mon, 5 Aug 2013 16:39:44 +0000 (-0400) Subject: Fixed display glitch on first icon row when second row is empty. X-Git-Url: https://code.delx.au/refind/commitdiff_plain/a64daa34e201885feed5199bdf6dd62643d5cd52 Fixed display glitch on first icon row when second row is empty. --- diff --git a/NEWS.txt b/NEWS.txt index 016b9a5..f8d30a1 100644 --- 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. diff --git a/refind/main.c b/refind/main.c index f7e7616..8cfc5d6 100644 --- a/refind/main.c +++ b/refind/main.c @@ -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"); diff --git a/refind/menu.c b/refind/menu.c index 40f26a1..f4bfd57 100644 --- a/refind/menu.c +++ b/refind/menu.c @@ -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)) {