From bd2826284ce3a4ecde2493ad53a79473352e5933 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 06 Aug 2021 16:15:17 -0400 Subject: tk: Rename mouse event method --- (limited to 'src/tk/grid.c') diff --git a/src/tk/grid.c b/src/tk/grid.c index 9862088..aedc228 100644 --- a/src/tk/grid.c +++ b/src/tk/grid.c @@ -91,7 +91,7 @@ _mftk_grid_index(struct mftk_widget *w, struct mftk_window *win) } static int -_mftk_grid_event(struct mftk_widget *w, SDL_Event *e, int x, int y) +_mftk_grid_mouse_event(struct mftk_widget *w, SDL_Event *e, int x, int y) { struct mftk_grid *g = (struct mftk_grid *) w; SDL_Point p; @@ -147,7 +147,8 @@ _mftk_grid_event(struct mftk_widget *w, SDL_Event *e, int x, int y) rect.h = ch->h; if (SDL_PointInRect(&p, &rect) == SDL_TRUE) { - return mftk_widget_event(ch, e, + return mftk_widget_mouse_event( + ch, e, rect.x, rect.y); } cx += g->cols_w[c]; -- cgit v0.9.1