Profiler: Fix cat display on small screens.

This commit is contained in:
Unknown W. Brackets committed 2017-12-30 10:19:15 -08:00
1 parent 267b9a6598
commit 4871b1eeb0
1 file changed
+4
+4
View File
@@ -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);