mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-12-26 23:06:44 +01:00
Removed an unnecessary call to cDevice::GetVideoSize()
This commit is contained in:
3
HISTORY
3
HISTORY
@@ -10090,7 +10090,7 @@ Video Disk Recorder Revision History
|
|||||||
- Added missing locks to SetMenuItem() functions.
|
- Added missing locks to SetMenuItem() functions.
|
||||||
- Revised locking in cMenuSchedule and cMenuWhatsOn.
|
- Revised locking in cMenuSchedule and cMenuWhatsOn.
|
||||||
|
|
||||||
2025-03-28:
|
2025-04-05:
|
||||||
|
|
||||||
- Added the "override" keyword to virtual functions reimplemented in derived classes.
|
- Added the "override" keyword to virtual functions reimplemented in derived classes.
|
||||||
Plugins may want to do the same, but don't have to.
|
Plugins may want to do the same, but don't have to.
|
||||||
@@ -10112,3 +10112,4 @@ Video Disk Recorder Revision History
|
|||||||
+ The setup option "DVB/Display subtitles" now has three settings: "no" and "always"
|
+ The setup option "DVB/Display subtitles" now has three settings: "no" and "always"
|
||||||
behave like before, the new "after rewind" turns on subtitles after a fast rewind
|
behave like before, the new "after rewind" turns on subtitles after a fast rewind
|
||||||
during replay, and off again when the point where the rewind was started is reached.
|
during replay, and off again when the point where the rewind was started is reached.
|
||||||
|
- Removed an unnecessary call to cDevice::GetVideoSize().
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* Original author: Marco Schluessler <marco@lordzodiac.de>
|
* Original author: Marco Schluessler <marco@lordzodiac.de>
|
||||||
* With some input from the "subtitles plugin" by Pekka Virtanen <pekka.virtanen@sci.fi>
|
* With some input from the "subtitles plugin" by Pekka Virtanen <pekka.virtanen@sci.fi>
|
||||||
*
|
*
|
||||||
* $Id: dvbsubtitle.c 5.5 2025/03/28 22:49:17 kls Exp $
|
* $Id: dvbsubtitle.c 5.6 2025/04/05 10:16:18 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbsubtitle.h"
|
#include "dvbsubtitle.h"
|
||||||
@@ -1578,10 +1578,7 @@ void cDvbSubtitleConverter::SetOsdData(void)
|
|||||||
{
|
{
|
||||||
int OsdWidth, OsdHeight;
|
int OsdWidth, OsdHeight;
|
||||||
double OsdAspect;
|
double OsdAspect;
|
||||||
int VideoWidth, VideoHeight;
|
|
||||||
double VideoAspect;
|
|
||||||
cDevice::PrimaryDevice()->GetOsdSize(OsdWidth, OsdHeight, OsdAspect);
|
cDevice::PrimaryDevice()->GetOsdSize(OsdWidth, OsdHeight, OsdAspect);
|
||||||
cDevice::PrimaryDevice()->GetVideoSize(VideoWidth, VideoHeight, VideoAspect);
|
|
||||||
if (OsdWidth == displayWidth && OsdHeight == displayHeight) {
|
if (OsdWidth == displayWidth && OsdHeight == displayHeight) {
|
||||||
osdFactorX = osdFactorY = 1.0;
|
osdFactorX = osdFactorY = 1.0;
|
||||||
osdDeltaX = osdDeltaY = 0;
|
osdDeltaX = osdDeltaY = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user