summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-12-18 15:40:27 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-12-18 15:46:09 +0100
commitb0c717a87df44fa697bfbe8ef8a5f0082763e246 (patch)
tree34fa206e0a2dbc2d095c542822c233bc95c65460
parentc239366517665eba958d8406152613762c7c62c3 (diff)
downloadskin-nopacity-b0c717a87df44fa697bfbe8ef8a5f0082763e246.tar.gz
skin-nopacity-b0c717a87df44fa697bfbe8ef8a5f0082763e246.tar.bz2
Height and width confused (thx to @LotharE at vdr-portal.de)
-rw-r--r--displaychannelview.c4
-rw-r--r--displayreplay.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/displaychannelview.c b/displaychannelview.c
index 885a970..16e59ed 100644
--- a/displaychannelview.c
+++ b/displaychannelview.c
@@ -545,8 +545,8 @@ cString cNopacityDisplayChannelView::GetScreenResolutionIcon(void) {
cDevice::PrimaryDevice()->GetVideoSize(screenWidth, screenHeight, aspect);
cString iconName("");
switch (screenWidth) {
- case 4320: // 7680 x 4320 = 8K UHD
- case 2160: // 3840 x 2160 = 4K UHD
+ case 7680: // 7680 x 4320 = 8K UHD
+ case 3840: // 3840 x 2160 = 4K UHD
iconName = "skinIcons/uhd4k";
break;
case 1920:
diff --git a/displayreplay.c b/displayreplay.c
index 1b91787..913ec78 100644
--- a/displayreplay.c
+++ b/displayreplay.c
@@ -273,11 +273,10 @@ void cNopacityDisplayReplay::DrawScreenResolution(void) {
int screenHeight = 0;
double aspect = 0;
cDevice::PrimaryDevice()->GetVideoSize(screenWidth, screenHeight, aspect);
-// esyslog ("skinnopacity: %s %s %d %ix%i\n", __FILE__, __func__, __LINE__, screenWidth, screenHeight);
cString iconName("");
switch (screenWidth) {
- case 4320: // 7680 x 4320 = 8K UHD
- case 2160: // 3840 x 2160 = 4K UHD
+ case 7680: // 7680 x 4320 = 8K UHD
+ case 3840: // 3840 x 2160 = 4K UHD
iconName = "skinIcons/uhd4k";
break;
case 1920: