Fixed an unnecessary double display of the current menu item in page up/down

This commit is contained in:
Klaus Schmidinger 2024-01-19 12:10:47 +01:00
parent 655682b5d2
commit 939071bf25
3 changed files with 7 additions and 8 deletions

View File

@ -3395,6 +3395,7 @@ Matthias Senzel <matthias.senzel@t-online.de>
of recordings was not updated immediately of recordings was not updated immediately
for fixing restoring the volume at program start for fixing restoring the volume at program start
for fixing height calculation in progress display for fixing height calculation in progress display
for fixing an unnecessary double display of the current menu item in page up/down
Marek Nazarko <mnazarko@gmail.com> Marek Nazarko <mnazarko@gmail.com>
for translating OSD texts to the Polish language for translating OSD texts to the Polish language

View File

@ -9863,7 +9863,7 @@ Video Disk Recorder Revision History
- The recording info of the default skins now shows the frame parameters of the - The recording info of the default skins now shows the frame parameters of the
recording at the end of the description (if such information is available). recording at the end of the description (if such information is available).
2024-01-18: 2024-01-19:
- Changed installing config files to handle potentially broken 'cp -n'. - Changed installing config files to handle potentially broken 'cp -n'.
- Fixed height calculation in progress display (thanks to Matthias Senzel). - Fixed height calculation in progress display (thanks to Matthias Senzel).
@ -9873,3 +9873,5 @@ Video Disk Recorder Revision History
more (thanks to Markus Ehrnsperger). more (thanks to Markus Ehrnsperger).
- Implemented scaling images (thanks to Andreas Baierl). - Implemented scaling images (thanks to Andreas Baierl).
- Removed syslog calls in child process after fork() (thanks to Markus Ehrnsperger). - Removed syslog calls in child process after fork() (thanks to Markus Ehrnsperger).
- Fixed an unnecessary double display of the current menu item in page up/down
(thanks to Matthias Senzel).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: osdbase.c 4.5 2018/03/24 11:47:45 kls Exp $ * $Id: osdbase.c 5.1 2024/01/19 12:10:47 kls Exp $
*/ */
#include "osdbase.h" #include "osdbase.h"
@ -447,10 +447,8 @@ void cOsdMenu::PageUp(void)
else if (current - first >= displayMenuItems) else if (current - first >= displayMenuItems)
first = current - displayMenuItems + 1; first = current - displayMenuItems + 1;
} }
if (current != oldCurrent || first != oldFirst) { if (current != oldCurrent || first != oldFirst)
Display(); Display();
DisplayCurrent(true);
}
else if (Setup.MenuScrollWrap) else if (Setup.MenuScrollWrap)
CursorUp(); CursorUp();
} }
@ -481,10 +479,8 @@ void cOsdMenu::PageDown(void)
else if (current - first >= displayMenuItems) else if (current - first >= displayMenuItems)
first = current - displayMenuItems + 1; first = current - displayMenuItems + 1;
} }
if (current != oldCurrent || first != oldFirst) { if (current != oldCurrent || first != oldFirst)
Display(); Display();
DisplayCurrent(true);
}
else if (Setup.MenuScrollWrap) else if (Setup.MenuScrollWrap)
CursorDown(); CursorDown();
} }