GNOME Bugzilla – Bug 770030
avfvideosrc: account for retina displays when capturing screens
Last modified: 2016-08-19 09:56:22 UTC
Created attachment 333486 [details] [review] fixes retina screen support This patch supports "retina" (high DPI) displays for screen capture. On "retina" displays width and height reported by CGDisplayBounds are not the correct values pixel wise for the captured image. Instead the correct ones can be calculated by taking the "backingScalingFactor" into account from the screen being captured. Without this patch the element will capture only capture the top left quarter of the display. That is because current retina displays have a backingScalingFactor of 2.0. So instead of 1920*2x1200*2 only 1920x1200 is being captured.
commit 6de83e0515c334466f0e1649090c7421ea79881e Author: Florian Zwoch <fzwoch@gmail.com> Date: Fri Aug 19 19:46:24 2016 +1000 avfvideosrc: account for retina displays when capturing screens Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=770030