Move status update overlay to bottom left for SDL

This commit is contained in:
Cameron Gutman 2019-03-23 21:14:21 -07:00
parent c48ed7bb0d
commit cabbba2448

View file

@ -197,11 +197,11 @@ void SdlRenderer::renderOverlay(Overlay::OverlayType type)
}
if (type == Overlay::OverlayStatusUpdate) {
// Top right
// Bottom Left
int unused;
SDL_RenderGetLogicalSize(m_Renderer, &m_OverlayRects[type].x, &unused);
m_OverlayRects[type].x -= surface->w;
m_OverlayRects[type].y = 0;
SDL_RenderGetLogicalSize(m_Renderer, &unused, &m_OverlayRects[type].y);
m_OverlayRects[type].x = 0;
m_OverlayRects[type].y -= surface->h;
}
else if (type == Overlay::OverlayDebug) {
// Top left