Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13390 closed Developer Task (fixed)

Desktop scaling inversely scales mythfrontend

Reported by: peper03 Owned by: peper03
Priority: minor Milestone: 31.0
Component: MythTV - General Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no

Description

When desktop scaling is not 1.0, mythfrontend is scaled inversely so a 4k display with scaling set to 1.5 (under kde) makes the UI appear at 2560x1440 instead of 3840x2160:

2019-01-27 16:07:14.117391 I  mythuihelper.cpp:260:GetScreenBounds  MythUIHelper: Primary screen: 0.
2019-01-27 16:07:14.117421 I  mythuihelper.cpp:314:GetScreenBounds  MythUIHelper: Using screen 0, 2560x1440 at 0,0
2019-01-27 16:07:14.145047 N  DisplayRes.cpp:64:Initialize  Desktop video mode: 3840x2160 59.997 Hz

Although the whole screen is covered, the UI is only shown in part of it (see attachment).

Setting Qt::AA_DisableHighDpiScaling in the application seems to fix the problem but is only available from QT 5.6 onwards.

This doesn't only affect hidpi displays. A laptop with 1920x1080 but desktop scaling set to 1.2 shows the same issue.

Attachments (1)

mythfrontend_scaled.png (423.1 KB) - added by peper03 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by peper03

Attachment: mythfrontend_scaled.png added

comment:1 Changed 5 years ago by Richard Hulme <peper03@…>

Resolution: fixed
Status: assignedclosed

In 65d3f7b81/mythtv:

Ignore desktop/DPI scaling on environments with QT >= 5.6

Fixes #13390

comment:2 Changed 5 years ago by Stuart Auchterlonie

Milestone: needs_triage31.0
Note: See TracTickets for help on using tickets.