From b0c717a87df44fa697bfbe8ef8a5f0082763e246 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sat, 18 Dec 2021 15:40:27 +0100 Subject: Height and width confused (thx to @LotharE at vdr-portal.de) --- displaychannelview.c | 4 ++-- displayreplay.c | 5 ++--- 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: -- cgit v1.2.3