mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix #7884 by fixing silly UI layout bug
This commit is contained in:
parent
2eb45f5016
commit
dc4fb4ca76
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ bool IsDragCaptured(int id) {
|
|||
|
||||
void ApplyGravity(const Bounds outer, const Margins &margins, float w, float h, int gravity, Bounds &inner) {
|
||||
inner.w = w - (margins.left + margins.right);
|
||||
inner.h = h - (margins.right + margins.left);
|
||||
inner.h = h - (margins.top + margins.bottom);
|
||||
|
||||
switch (gravity & G_HORIZMASK) {
|
||||
case G_LEFT: inner.x = outer.x + margins.left; break;
|
||||
|
|
Loading…
Add table
Reference in a new issue