From 981e7dc3c47f750acfefc6a3ff58da42f52212bc Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@monsoon-hp.(none)> Date: Thu, 23 Feb 2012 23:07:50 -0500 Subject: [PATCH] fixed erroneous calcuation of getrect call inside g_mycanvas.c --- src/g_mycanvas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g_mycanvas.c b/src/g_mycanvas.c index 4e8833505..19fe019b3 100644 --- a/src/g_mycanvas.c +++ b/src/g_mycanvas.c @@ -420,8 +420,8 @@ static void my_canvas_getrect(t_gobj *z, t_glist *glist, int *xp1, int *yp1, int *xp1 = text_xpix(&x->x_gui.x_obj, glist); *yp1 = text_ypix(&x->x_gui.x_obj, glist); - *xp2 = *xp1 + x->x_gui.x_w; - *yp2 = *yp1 + x->x_gui.x_h; + *xp2 = *xp1 + x->x_vis_w; + *yp2 = *yp1 + x->x_vis_h; } static void my_canvas_save(t_gobj *z, t_binbuf *b) -- GitLab