mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Move status update overlay to bottom left for SDL
This commit is contained in:
@@ -197,11 +197,11 @@ void SdlRenderer::renderOverlay(Overlay::OverlayType type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (type == Overlay::OverlayStatusUpdate) {
|
if (type == Overlay::OverlayStatusUpdate) {
|
||||||
// Top right
|
// Bottom Left
|
||||||
int unused;
|
int unused;
|
||||||
SDL_RenderGetLogicalSize(m_Renderer, &m_OverlayRects[type].x, &unused);
|
SDL_RenderGetLogicalSize(m_Renderer, &unused, &m_OverlayRects[type].y);
|
||||||
m_OverlayRects[type].x -= surface->w;
|
m_OverlayRects[type].x = 0;
|
||||||
m_OverlayRects[type].y = 0;
|
m_OverlayRects[type].y -= surface->h;
|
||||||
}
|
}
|
||||||
else if (type == Overlay::OverlayDebug) {
|
else if (type == Overlay::OverlayDebug) {
|
||||||
// Top left
|
// Top left
|
||||||
|
|||||||
Reference in New Issue
Block a user