mirror of
https://github.com/love2d/megasource.git
synced 2026-08-21 05:02:11 +02:00
update SDL3 to libsdl-org/SDL@186c6e5
This commit is contained in:
@@ -297,12 +297,12 @@ static int COMPUTEOUTCODE(const RECTTYPE *rect, SCALARTYPE x, SCALARTYPE y)
|
||||
int code = 0;
|
||||
if (y < rect->y) {
|
||||
code |= CODE_TOP;
|
||||
} else if (y >= rect->y + rect->h) {
|
||||
} else if (y > (rect->y + rect->h - ENCLOSEPOINTS_EPSILON)) {
|
||||
code |= CODE_BOTTOM;
|
||||
}
|
||||
if (x < rect->x) {
|
||||
code |= CODE_LEFT;
|
||||
} else if (x >= rect->x + rect->w) {
|
||||
} else if (x > (rect->x + rect->w - ENCLOSEPOINTS_EPSILON)) {
|
||||
code |= CODE_RIGHT;
|
||||
}
|
||||
return code;
|
||||
|
||||
Reference in New Issue
Block a user