mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Create power-of-2 overlay surfaces for better performance
This lets us take the fast copy path in the DXVA2 renderer.
This commit is contained in:
@@ -136,7 +136,7 @@ void OverlayManager::notifyOverlayUpdated(OverlayType type)
|
|||||||
SDL_Surface* surface = TTF_RenderText_Blended_Wrapped(m_Overlays[type].font,
|
SDL_Surface* surface = TTF_RenderText_Blended_Wrapped(m_Overlays[type].font,
|
||||||
m_Overlays[type].text,
|
m_Overlays[type].text,
|
||||||
m_Overlays[type].color,
|
m_Overlays[type].color,
|
||||||
1000);
|
1024);
|
||||||
SDL_AtomicSetPtr((void**)&m_Overlays[type].surface, surface);
|
SDL_AtomicSetPtr((void**)&m_Overlays[type].surface, surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user