mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 22:50:57 +00:00
Set explicit scaling mode for all SDL textures
This commit is contained in:
@@ -251,6 +251,11 @@ void SdlRenderer::renderOverlay(Overlay::OverlayType type)
|
||||
|
||||
m_OverlayTextures[type] = SDL_CreateTextureFromSurface(m_Renderer, newSurface);
|
||||
SDL_FreeSurface(newSurface);
|
||||
|
||||
if (m_OverlayTextures[type]) {
|
||||
// Overlays are always drawn at exact size
|
||||
SDL_SetTextureScaleMode(m_OverlayTextures[type], SDL_ScaleModeNearest);
|
||||
}
|
||||
}
|
||||
|
||||
// If we have an overlay texture, render it too
|
||||
|
||||
Reference in New Issue
Block a user