From: ellson Date: Fri, 24 Jun 2005 20:44:29 +0000 (+0000) Subject: add pointer to GVJ_t to store latest known pointer position on device. X-Git-Tag: LAST_LIBGRAPH~32^2~7496 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a35509dbf955d1d869a1790708a9eee48a9571ef;p=graphviz add pointer to GVJ_t to store latest known pointer position on device. --- diff --git a/lib/gvc/gvcint.h b/lib/gvc/gvcint.h index ca05cf76e..0c33d88fd 100644 --- a/lib/gvc/gvcint.h +++ b/lib/gvc/gvcint.h @@ -129,9 +129,8 @@ extern "C" { pointf focus; /* viewport focus in graph units */ box boundingBox; /* drawable region in device units */ -#if 0 - pointf pointer; /* pointer position in graph units */ -#endif + pointf pointer; /* pointer position in device units */ + boxf clip; /* clip region in graph units */ boxf pageBoxClip; /* intersection of clip and pageBox */ diff --git a/lib/gvc/gvplugin.c b/lib/gvc/gvplugin.c index 6dc29293a..344c289a6 100644 --- a/lib/gvc/gvplugin.c +++ b/lib/gvc/gvplugin.c @@ -114,7 +114,7 @@ gvplugin_library_t *gvplugin_library_load(char *path) if (len > lenp) { lenp = len+20; if (p) - realloc(p, lenp); + p = realloc(p, lenp); else p = malloc(lenp); }