mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-27 14:30:25 +00:00
1 parent
819ea36cca
commit
164b3edd41
1 file changed
+1
-1
@@ -544,7 +544,7 @@ bool EGLRenderer::initialize(PDECODER_PARAMETERS params)
|
|||||||
src.x = src.y = dst.x = dst.y = 0;
|
src.x = src.y = dst.x = dst.y = 0;
|
||||||
src.w = params->width;
|
src.w = params->width;
|
||||||
src.h = params->height;
|
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);
|
StreamUtils::scaleSourceToDestinationSurface(&src, &dst);
|
||||||
|
|
||||||
glViewport(dst.x, dst.y, dst.w, dst.h);
|
glViewport(dst.x, dst.y, dst.w, dst.h);
|
||||||
|
|||||||
Reference in new issue
Block a user