From 164b3edd41d3818eb1a71ee096fc93d7755a6b68 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 1 Mar 2021 22:45:16 -0600 Subject: [PATCH] Fix viewport size on High DPI Wayland systems Fixes #533 --- app/streaming/video/ffmpeg-renderers/eglvid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/streaming/video/ffmpeg-renderers/eglvid.cpp b/app/streaming/video/ffmpeg-renderers/eglvid.cpp index a30b29ef..6ffdd5e6 100644 --- a/app/streaming/video/ffmpeg-renderers/eglvid.cpp +++ b/app/streaming/video/ffmpeg-renderers/eglvid.cpp @@ -544,7 +544,7 @@ bool EGLRenderer::initialize(PDECODER_PARAMETERS params) src.x = src.y = dst.x = dst.y = 0; src.w = params->width; src.h = params->height; - SDL_GetWindowSize(m_Window, &dst.w, &dst.h); + SDL_GL_GetDrawableSize(m_Window, &dst.w, &dst.h); StreamUtils::scaleSourceToDestinationSurface(&src, &dst); glViewport(dst.x, dst.y, dst.w, dst.h);