mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed checking aspect in cVeDcScreenResolution
This commit is contained in:
parent
f769e1b244
commit
85d260d292
@ -414,6 +414,7 @@ bool cVeDcAudioInfo::Parse(bool forced) {
|
|||||||
cVeDcScreenResolution::cVeDcScreenResolution(void) {
|
cVeDcScreenResolution::cVeDcScreenResolution(void) {
|
||||||
lastScreenWidth = -1;
|
lastScreenWidth = -1;
|
||||||
lastScreenHeight = -1;
|
lastScreenHeight = -1;
|
||||||
|
lastAspect = -1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
cVeDcScreenResolution::~cVeDcScreenResolution(void) {
|
cVeDcScreenResolution::~cVeDcScreenResolution(void) {
|
||||||
@ -422,6 +423,7 @@ cVeDcScreenResolution::~cVeDcScreenResolution(void) {
|
|||||||
void cVeDcScreenResolution::Close(void) {
|
void cVeDcScreenResolution::Close(void) {
|
||||||
lastScreenWidth = -1;
|
lastScreenWidth = -1;
|
||||||
lastScreenHeight = -1;
|
lastScreenHeight = -1;
|
||||||
|
lastAspect = -1.0f;
|
||||||
cViewElement::Close();
|
cViewElement::Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -445,7 +447,7 @@ bool cVeDcScreenResolution::Parse(bool forced) {
|
|||||||
|
|
||||||
cDevice::PrimaryDevice()->GetVideoSize(screenWidth, screenHeight, aspect);
|
cDevice::PrimaryDevice()->GetVideoSize(screenWidth, screenHeight, aspect);
|
||||||
|
|
||||||
if ((lastScreenWidth == screenWidth) && (lastScreenHeight == screenHeight))
|
if ((lastScreenWidth == screenWidth) && (lastScreenHeight == screenHeight) && (lastAspect == aspect))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ((screenWidth == 0) && (screenHeight == 0))
|
if ((screenWidth == 0) && (screenHeight == 0))
|
||||||
@ -453,6 +455,7 @@ bool cVeDcScreenResolution::Parse(bool forced) {
|
|||||||
|
|
||||||
lastScreenWidth = screenWidth;
|
lastScreenWidth = screenWidth;
|
||||||
lastScreenHeight = screenHeight;
|
lastScreenHeight = screenHeight;
|
||||||
|
lastAspect = aspect;
|
||||||
SetDirty();
|
SetDirty();
|
||||||
|
|
||||||
bool isHD = false;
|
bool isHD = false;
|
||||||
|
@ -92,6 +92,7 @@ class cVeDcScreenResolution : public cViewElement {
|
|||||||
private:
|
private:
|
||||||
int lastScreenWidth;
|
int lastScreenWidth;
|
||||||
int lastScreenHeight;
|
int lastScreenHeight;
|
||||||
|
double lastAspect;
|
||||||
public:
|
public:
|
||||||
cVeDcScreenResolution(void);
|
cVeDcScreenResolution(void);
|
||||||
virtual ~cVeDcScreenResolution(void);
|
virtual ~cVeDcScreenResolution(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user