summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2012-08-07 10:31:39 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2012-08-16 22:41:09 +0200
commite70b5ee2fde62da0e3cf969486e33c7ea37ae2b5 (patch)
tree9058b647f4cfb0dd95dd6c668848db91e3f3b4c4 /Makefile
parentc15270d3b971fd90058bc1de43b8f170f7a15aef (diff)
downloadmpv-e70b5ee2fde62da0e3cf969486e33c7ea37ae2b5.tar.bz2
mpv-e70b5ee2fde62da0e3cf969486e33c7ea37ae2b5.tar.xz
cocoa_common: add HiDPI/retina support
With a HiDPI screen, for performance and backwards compatibility reasons, AppKit requests an OpenGL surface with a pixel number that equals the user points number. After the image is rendered to this smaller surface, it is upscaled so that its dimensions are comparable across screens of different DPIs. The applied scaling is not that good and makes the video/subtitles blurry; this is not acceptable for a video player. Request AppKit to use a high resolution OpenGL surface to back the mplayer2 OpenGL view. Also set the window pixel size information correctly in the VO object by converting user points to actual pixels. All the system version checks are done at runtime so that the feature is available on OSX 10.7 even with a binary compiled with older SDKs. Also replace is_lion_or_better() with is_osx_version_at_least(10, 7, 0) which is defined in osx_common.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions