billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=2ca440ba9392018e4fee0e584407d5886053add0
commit 2ca440ba9392018e4fee0e584407d5886053add0 Author: Boris Faure <[email protected]> Date: Sat Feb 23 11:19:20 2019 +0100 tytest: use same offset as "real life" makes it easy to write tests --- src/bin/tyfuzz.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bin/tyfuzz.c b/src/bin/tyfuzz.c index 999b047..7f6e7a0 100644 --- a/src/bin/tyfuzz.c +++ b/src/bin/tyfuzz.c @@ -27,6 +27,8 @@ _tytest_checksum(Termpty *ty); #define TY_W 80 #define TY_CH_H 15 #define TY_CH_W 7 +#define TY_OFFSET_X 1 +#define TY_OFFSET_Y 1 #define TY_BACKSIZE 50 @@ -171,13 +173,13 @@ termio_object_geometry_get(Termio *sd, Evas_Coord *w, Evas_Coord *h) { if (x) - *x = 0; + *x = TY_OFFSET_X; if (y) - *y = 0; + *y = TY_OFFSET_Y; if (w) - *w = sd->font.chw * sd->grid.w; + *w = TY_OFFSET_X + sd->font.chw * sd->grid.w; if (h) - *h = sd->font.chh * sd->grid.h; + *h = TY_OFFSET_Y + sd->font.chh * sd->grid.h; } void --
