[mythtv-commits] [MythTV/mythtv] 8a0c4f: macos: Handle high DPI displays

Mark Kendall noreply at github.com
Mon Jun 29 16:16:29 UTC 2020


  Branch: refs/heads/fixes/31
  Home:   https://github.com/MythTV/mythtv
  Commit: 8a0c4f9bd2d9567ccbdb4151d7c03068388b45a6
      https://github.com/MythTV/mythtv/commit/8a0c4f9bd2d9567ccbdb4151d7c03068388b45a6
  Author: Mark Kendall <mark.kendall at gmail.com>
  Date:   2020-06-29 (Mon, 29 Jun 2020)

  Changed paths:
    M mythtv/libs/libmythtv/mythvideoout.cpp
    M mythtv/libs/libmythtv/videooutwindow.cpp
    M mythtv/libs/libmythtv/videooutwindow.h
    M mythtv/libs/libmythui/mythpainter.h
    M mythtv/libs/libmythui/opengl/mythpainteropengl.cpp
    M mythtv/libs/libmythui/opengl/mythpainteropengl.h
    M mythtv/libs/libmythui/opengl/mythrenderopengl.cpp
    M mythtv/libs/libmythui/opengl/mythrenderopengl.h

  Log Message:
  -----------
  macos: Handle high DPI displays

- behaviour should be unchanged for non-macos installations
- the underlying problem is that when macos is using high DPI, the
windowing system reports e.g. 1920x1080 as the window size but the
underlying OpenGL context is using the full resolution e.g. 3840x2160.
- video playback is actually easiest - as we just scale the video
window/viewport as needed - and everything else falls into place.
- the UI painter is slightly more complicated as our UI images are at
the lower resolution - and the entire UI code is operating on the
reported window size. So scale incoming rendering data as required,
which also requires some tweaking of the texture vertices.

Refs #13618




More information about the mythtv-commits mailing list