Permalink
Browse files

Profiler: Fix cat display on small screens.

  • Loading branch information...
unknownbrackets committed Dec 30, 2017
1 parent 267b9a6 commit 4871b1eeb08d217a36216880fe302a103cfdf881
Showing with 4 additions and 0 deletions.
  1. +4 −0 UI/ProfilerDraw.cpp
View
@@ -94,6 +94,10 @@ void DrawProfile(UIContext &ui) {
}
legendWidth += 20.0f;
if (legendHeight > ui.GetBounds().h) {
legendHeight = ui.GetBounds().h;
}
float legendStartY = legendHeight > ui.GetBounds().centerY() ? ui.GetBounds().y2() - legendHeight : ui.GetBounds().centerY();
float legendStartX = ui.GetBounds().x2() - std::min(legendWidth, 200.0f);

0 comments on commit 4871b1e

Please sign in to comment.