summaryrefslogtreecommitdiff
path: root/displayreplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'displayreplay.c')
-rw-r--r--displayreplay.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/displayreplay.c b/displayreplay.c
index 913ec78..644ce2a 100644
--- a/displayreplay.c
+++ b/displayreplay.c
@@ -273,29 +273,9 @@ void cNopacityDisplayReplay::DrawScreenResolution(void) {
int screenHeight = 0;
double aspect = 0;
cDevice::PrimaryDevice()->GetVideoSize(screenWidth, screenHeight, aspect);
- cString iconName("");
- switch (screenWidth) {
- case 7680: // 7680 x 4320 = 8K UHD
- case 3840: // 3840 x 2160 = 4K UHD
- iconName = "skinIcons/uhd4k";
- break;
- case 1920:
- case 1440:
- iconName = "skinIcons/hd1080i_rec";
- break;
- case 1280:
- if (screenHeight == 720)
- iconName = "skinIcons/hd720p_rec";
- else
- iconName = "skinIcons/hd1080i_rec";
- break;
- case 720:
- iconName = "skinIcons/sd576i_rec";
- break;
- default:
- iconName = "skinIcons/sd576i_rec";
- break;
- }
+ cString iconName = GetScreenResolutionIcon();
+ if (strcasecmp(iconName, "") == 0)
+ return;
int replaySize = geoManager->replayResolutionSize;
cImage *imgRes = imgCache->GetSkinIcon(*iconName, 3 * replaySize, replaySize);
if (imgRes) {