mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-27 14:30:25 +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:
1 parent
5f4975ca5c
commit
9c758f1628
1 file changed
+1
-1
@@ -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