summaryrefslogtreecommitdiff
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorHeinrich Fink <hfink@toolsonair.com>2016-04-17 15:43:20 +0100
committerSebastian Dröge <sebastian@centricular.com>2016-04-18 10:32:07 +0300
commitef12e05a59d152f04ba6e27a63d4a69d4696dcf4 (patch)
treea57f62ffa72a33904d5e0938b3b4f011a0a5296e /gst-libs/gst
parent4e5b0b38a46a53469bad25074123b2d11a2fc0de (diff)
downloadgstreamer-plugins-bad-ef12e05a59d152f04ba6e27a63d4a69d4696dcf4.tar.gz
gl/caopengllayer: Apply layer.contentsScale to viewport dims
Fixes blurry content on HiDPI screens https://bugzilla.gnome.org/show_bug.cgi?id=765194
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/gl/cocoa/gstglcaopengllayer.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/cocoa/gstglcaopengllayer.m b/gst-libs/gst/gl/cocoa/gstglcaopengllayer.m
index a11700d24..45bd0dd0e 100644
--- a/gst-libs/gst/gl/cocoa/gstglcaopengllayer.m
+++ b/gst-libs/gst/gl/cocoa/gstglcaopengllayer.m
@@ -192,8 +192,9 @@ _context_ready (gpointer data)
if (self->queue_resize || self->last_bounds.size.width != self.bounds.size.width
|| self->last_bounds.size.height != self.bounds.size.height) {
if (self->resize_cb) {
- self->resize_cb (self->resize_data, self.bounds.size.width,
- self.bounds.size.height);
+ self->resize_cb (self->resize_data,
+ self.bounds.size.width*self.contentsScale,
+ self.bounds.size.height*self.contentsScale);
gl->GetIntegerv (GL_VIEWPORT, self->expected_dims);
} else {