diff --git a/subprojects/gst-plugins-good/ext/qt/qtwindow.cc b/subprojects/gst-plugins-good/ext/qt/qtwindow.cc index aefac15d31..9ab56f7f71 100644 --- a/subprojects/gst-plugins-good/ext/qt/qtwindow.cc +++ b/subprojects/gst-plugins-good/ext/qt/qtwindow.cc @@ -330,8 +330,12 @@ QtGLWindow::getGeometry(int * width, int * height) if (width == NULL || height == NULL) return FALSE; - *width = this->source->width(); - *height = this->source->height(); + double scale = this->source->effectiveDevicePixelRatio(); + *width = this->source->width() * scale; + *height = this->source->height() * scale; + + GST_LOG("Window width %d height %d scale %f", *width, *height, + scale); return TRUE; }