mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-03-05 07:07:18 +00:00
parent
819ea36cca
commit
164b3edd41
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue