[mythtv-commits] [MythTV/mythtv] 19e8d9: macos: Handle high DPI displays
Mark Kendall
noreply at github.com
Mon Jun 29 16:22:55 UTC 2020
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 19e8d9d0cf81bca056471d9a1522a96832f7e40c
https://github.com/MythTV/mythtv/commit/19e8d9d0cf81bca056471d9a1522a96832f7e40c
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.
Closes #13618
More information about the mythtv-commits
mailing list