mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 16:23:35 +01:00
Profiler: Fix cat display on small screens.
This commit is contained in:
1 parent
267b9a6598
commit
4871b1eeb0
1 file changed
+4
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user