aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmisc/gmisc_hittest.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-07-08 10:43:30 +1000
committerinmarket <andrewh@inmarket.com.au>2018-07-08 10:43:30 +1000
commit7e95acb7310d83284288a6e89a6b3fe4bf4e8668 (patch)
treeab75f4037108ce704be60589e1ff830ef75bc5c4 /src/gmisc/gmisc_hittest.c
parente8b789bfb166ee3218e9dbb4c6ddf74bdba79510 (diff)
downloaduGFX-7e95acb7310d83284288a6e89a6b3fe4bf4e8668.tar.gz
uGFX-7e95acb7310d83284288a6e89a6b3fe4bf4e8668.tar.bz2
uGFX-7e95acb7310d83284288a6e89a6b3fe4bf4e8668.zip
Change point and point_t to gPoint
Diffstat (limited to 'src/gmisc/gmisc_hittest.c')
-rw-r--r--src/gmisc/gmisc_hittest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gmisc/gmisc_hittest.c b/src/gmisc/gmisc_hittest.c
index 6e977cb2..9b279873 100644
--- a/src/gmisc/gmisc_hittest.c
+++ b/src/gmisc/gmisc_hittest.c
@@ -18,7 +18,7 @@
* the function returns 1. If the point c is on the segment, the function
* returns 0. If they don't intersect, it returns 2.
*/
-static char _pointCrossingSegment(const point *a, const point *b, const point *c) {
+static char _pointCrossingSegment(const gPoint *a, const gPoint *b, const gPoint *c) {
/* If both points are left from our point, it won't intersect */
if (a->x < c->x && b->x < c->x) {
return -1;
@@ -64,7 +64,7 @@ static char _pointCrossingSegment(const point *a, const point *b, const point *c
return -1;
}
-gBool gmiscHittestPoly(const point *pntarray, unsigned cnt, const point *p) {
+gBool gmiscHittestPoly(const gPoint *pntarray, unsigned cnt, const gPoint *p) {
unsigned i = 0;
uint8_t nbrIntersection = 0;
int8_t crossResult;