diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 10:43:30 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 10:43:30 +1000 |
commit | 7e95acb7310d83284288a6e89a6b3fe4bf4e8668 (patch) | |
tree | ab75f4037108ce704be60589e1ff830ef75bc5c4 /src/ginput/ginput_mouse.c | |
parent | e8b789bfb166ee3218e9dbb4c6ddf74bdba79510 (diff) | |
download | uGFX-7e95acb7310d83284288a6e89a6b3fe4bf4e8668.tar.gz uGFX-7e95acb7310d83284288a6e89a6b3fe4bf4e8668.tar.bz2 uGFX-7e95acb7310d83284288a6e89a6b3fe4bf4e8668.zip |
Change point and point_t to gPoint
Diffstat (limited to 'src/ginput/ginput_mouse.c')
-rw-r--r-- | src/ginput/ginput_mouse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ginput/ginput_mouse.c b/src/ginput/ginput_mouse.c index ca032623..73d855b8 100644 --- a/src/ginput/ginput_mouse.c +++ b/src/ginput/ginput_mouse.c @@ -351,7 +351,7 @@ static void MousePoll(void *param) { #error "GINPUT: GFX_USE_GDISP must be defined when calibration is required" #endif - static GFXINLINE void CalibrationCrossDraw(GMouse *m, const point *pp) { + static GFXINLINE void CalibrationCrossDraw(GMouse *m, const gPoint *pp) { gdispGDrawLine(m->display, pp->x-CALIBRATION_CROSS_RADIUS, pp->y, pp->x-CALIBRATION_CROSS_INNERGAP, pp->y, CALIBRATION_CROSS_COLOR1); gdispGDrawLine(m->display, pp->x+CALIBRATION_CROSS_INNERGAP, pp->y, pp->x+CALIBRATION_CROSS_RADIUS, pp->y, CALIBRATION_CROSS_COLOR1); gdispGDrawLine(m->display, pp->x, pp->y-CALIBRATION_CROSS_RADIUS, pp->x, pp->y-CALIBRATION_CROSS_INNERGAP, CALIBRATION_CROSS_COLOR1); @@ -366,11 +366,11 @@ static void MousePoll(void *param) { gdispGDrawLine(m->display, pp->x+CALIBRATION_CROSS_RADIUS, pp->y-CALIBRATION_CROSS_RADIUS, pp->x+CALIBRATION_CROSS_RADIUS, pp->y-CALIBRATION_CROSS_RADIUS/2, CALIBRATION_CROSS_COLOR2); } - static GFXINLINE void CalibrationCrossClear(GMouse *m, const point *pp) { + static GFXINLINE void CalibrationCrossClear(GMouse *m, const gPoint *pp) { gdispGFillArea(m->display, pp->x - CALIBRATION_CROSS_RADIUS, pp->y - CALIBRATION_CROSS_RADIUS, CALIBRATION_CROSS_RADIUS*2+1, CALIBRATION_CROSS_RADIUS*2+1, CALIBRATION_BACKGROUND); } - static GFXINLINE void CalibrationCalculate(GMouse *m, const point *cross, const point *points) { + static GFXINLINE void CalibrationCalculate(GMouse *m, const gPoint *cross, const gPoint *points) { float dx; coord_t c0, c1, c2; (void) m; @@ -463,8 +463,8 @@ static void MousePoll(void *param) { static uint32_t CalibrateMouse(GMouse *m) { coord_t w, h; - point cross[4]; // The locations of the test points on the display - point points[4]; // The x, y readings obtained from the mouse for each test point + gPoint cross[4]; // The locations of the test points on the display + gPoint points[4]; // The x, y readings obtained from the mouse for each test point uint32_t err; #if GDISP_NEED_TEXT font_t font1, font2; |