diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-13 17:11:37 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-13 17:11:37 +0200 |
| commit | 5d529d46e772b754397c3381cc73015acefbea7f (patch) | |
| tree | 86e825f36673c1e080d82a78362a61a718451e01 /src/defines.hpp | |
| parent | 32597bd8cb7a47c006becd218cb32e99a6c95b06 (diff) | |
use output's modes instead of a custom mode
Diffstat (limited to 'src/defines.hpp')
| -rw-r--r-- | src/defines.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/defines.hpp b/src/defines.hpp index 4bd5f239..8b810fd5 100644 --- a/src/defines.hpp +++ b/src/defines.hpp @@ -21,6 +21,8 @@ #define VECINRECT(vec, x1, y1, x2, y2) (vec.x >= (x1) && vec.x <= (x2) && vec.y >= (y1) && vec.y <= (y2)) +#define DELTALESSTHAN(a, b, delta) (abs((a) - (b)) < delta) + #define interface class #define STICKS(a, b) abs((a) - (b)) < 2 |
