[mythtv-commits] [MythTV/mythtv] 01bc4f: High DPI scaling: Fix displaying the ProgramGuide ...

Mark Kendall noreply at github.com
Sat Sep 19 08:10:23 UTC 2020


  Branch: refs/heads/fixes/31
  Home:   https://github.com/MythTV/mythtv
  Commit: 01bc4fc628a2b294c931b467894254eff1871c2f
      https://github.com/MythTV/mythtv/commit/01bc4fc628a2b294c931b467894254eff1871c2f
  Author: Mark Kendall <mark.kendall at gmail.com>
  Date:   2020-09-19 (Sat, 19 Sep 2020)

  Changed paths:
    M mythtv/libs/libmythtv/opengl/mythvideooutopengl.cpp
    M mythtv/libs/libmythui/opengl/mythpainteropengl.cpp
    M mythtv/libs/libmythui/opengl/mythpainteropengl.h

  Log Message:
  -----------
  High DPI scaling: Fix displaying the ProgramGuide when embedded

- previously, when playing video, we disabled framebuffer clearing, setting of the viewport and any high dpi scaling in the painter.
- when high dpi was being used, this broke rendering of the programme guide etc
- we now differentiate beween control over the framebuffer and the viewport, and allow the painter to set the viewport (and scaling) when embedding - and the guide is rendered correctly

Adapted from 88add49a414aed581a in master

Refs #206


  Commit: ea0831c74a1c7bcb116eff79691ef24612343a62
      https://github.com/MythTV/mythtv/commit/ea0831c74a1c7bcb116eff79691ef24612343a62
  Author: Mark Kendall <mark.kendall at gmail.com>
  Date:   2020-09-19 (Sat, 19 Sep 2020)

  Changed paths:
    M mythtv/libs/libmythtv/videooutwindow.cpp
    M mythtv/libs/libmythtv/videooutwindow.h

  Log Message:
  -----------
  macos High DPI: Fix scaling of embedded video

- when high DPI is in use, we need to apply the correct scaling to
  both the embedding rect and ITV resize rect
- as for the window rect, store the 'raw' values and use these as
  comparators for detecting change

Refs #206


Compare: https://github.com/MythTV/mythtv/compare/21ef6eed645d...ea0831c74a1c


More information about the mythtv-commits mailing list