rootless: Use RL_GRAVITY_NORTH_WEST for min/max/zoom resizing

If none of the four corners is fixed, we can use RL_GRAVITY_NORTH_WEST weighting
for the operation to let the implementation presetve the window bits for us.

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston Sequoia 2023-01-02 23:52:36 -08:00
parent 65ee3248f5
commit 305e627c01

View File

@ -845,7 +845,7 @@ ResizeWeighting(int oldX1, int oldY1, int oldX2, int oldY2, int oldBW,
else if (newX2 == oldX2 && newY1 == oldY1)
return RL_GRAVITY_NORTH_EAST;
else
return RL_GRAVITY_NONE;
return RL_GRAVITY_NORTH_WEST;
}
/*