diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-09-15 03:17:27 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-09-15 03:17:27 +0000 |
commit | 46f38b8d427735b339a98994b0db776b874f05ad (patch) | |
tree | 9292d6021d77955d5b63531176dec11d51312ddf /pd/src/g_graph.c | |
parent | b8827f17107c537f192c60eef0d7840ba1d2d3e8 (diff) |
Bug fixes for 0.39-0, in preparation for releasing 0.39-1.
svn path=/trunk/; revision=3561
Diffstat (limited to 'pd/src/g_graph.c')
-rw-r--r-- | pd/src/g_graph.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c index b7b3da72..305da6aa 100644 --- a/pd/src/g_graph.c +++ b/pd/src/g_graph.c @@ -610,7 +610,8 @@ int text_xpix(t_text *x, t_glist *glist) if (glist->gl_havewindow || !glist->gl_isgraph) return (x->te_xpix); else if (glist->gl_goprect) - return (glist->gl_obj.te_xpix + x->te_xpix - glist->gl_xmargin); + return (glist_xtopixels(glist, glist->gl_x1) + + x->te_xpix - glist->gl_xmargin); else return (glist_xtopixels(glist, glist->gl_x1 + (glist->gl_x2 - glist->gl_x1) * x->te_xpix / (glist->gl_screenx2 - glist->gl_screenx1))); @@ -621,7 +622,8 @@ int text_ypix(t_text *x, t_glist *glist) if (glist->gl_havewindow || !glist->gl_isgraph) return (x->te_ypix); else if (glist->gl_goprect) - return (glist->gl_obj.te_ypix + x->te_ypix - glist->gl_ymargin); + return (glist_ytopixels(glist, glist->gl_y1) + + x->te_ypix - glist->gl_ymargin); else return (glist_ytopixels(glist, glist->gl_y1 + (glist->gl_y2 - glist->gl_y1) * x->te_ypix / (glist->gl_screeny2 - glist->gl_screeny1))); |