termiointernals: evas_pointer_canvas_xy_get() is expecting an evas

This commit is contained in:
Boris Faure 2019-02-14 20:35:29 +01:00
parent 23a76357f9
commit 8169dcca63
1 changed files with 3 additions and 2 deletions

View File

@ -1922,9 +1922,10 @@ _mouse_selection_scroll(void *data)
int cy;
float fcy;
if (!sd->pty->selection.makesel) return EINA_FALSE;
if (!sd->pty->selection.makesel)
return EINA_FALSE;
evas_pointer_canvas_xy_get(sd->self, NULL, &my);
evas_pointer_canvas_xy_get(evas_object_evas_get(sd->self), NULL, &my);
termio_object_geometry_get(sd, NULL, &oy, NULL, NULL);
fcy = (my - oy) / (float)sd->font.chh;
cy = fcy;