From: erg Date: Tue, 24 Jun 2008 15:01:30 +0000 (+0000) Subject: Fix code to remove compiler warnings; X-Git-Tag: LAST_LIBGRAPH~32^2~3933 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edfc7acf56e45662e4d40440521e782fdf228e66;p=graphviz Fix code to remove compiler warnings; increase default node size (node size should be controlled by user) --- diff --git a/cmd/smyrna/topfisheyeview.c b/cmd/smyrna/topfisheyeview.c index db49de216..162c7463b 100644 --- a/cmd/smyrna/topfisheyeview.c +++ b/cmd/smyrna/topfisheyeview.c @@ -272,7 +272,7 @@ void drawtopologicalfisheye2(topview * t) for (v = 0; v < hp->nvtxs[level]; v++) { { - ex_vtx_data *gg = hp->geom_graphs[level]; + /* ex_vtx_data *gg = hp->geom_graphs[level]; */ double x0,y0; if(get_temp_coords(t,level,v,&x0,&y0,&R,&G,&B)) { @@ -332,7 +332,7 @@ int get_temp_coords(topview* t,int level,int v,double* coord_x,double* coord_y,f { Hierarchy *hp = t->h; ex_vtx_data *gg = hp->geom_graphs[level]; - v_data *g = hp->graphs[level]; + /* v_data *g = hp->graphs[level]; */ int OAL,AL; OAL=gg[v].old_active_level; AL=gg[v].active_level; @@ -533,8 +533,8 @@ void refresh_old_values(topview* t) for (v = 0; v < hp->nvtxs[level]; v++) { ex_vtx_data *gg = hp->geom_graphs[level]; - v_data *g = hp->graphs[level]; - double x0,y0; + /* v_data *g = hp->graphs[level]; */ + /* double x0,y0; */ gg[v].old_physical_x_coord=gg[v].physical_x_coord; gg[v].old_physical_y_coord=gg[v].physical_y_coord; gg[v].old_active_level=gg[v].active_level; diff --git a/cmd/smyrna/topfisheyeview.h b/cmd/smyrna/topfisheyeview.h index 29f8ad3ac..a7f26a255 100644 --- a/cmd/smyrna/topfisheyeview.h +++ b/cmd/smyrna/topfisheyeview.h @@ -23,6 +23,7 @@ void fisheye_spherical(double x_focus, double y_focus, double z_focus, topview * t); void prepare_topological_fisheye(topview*); void drawtopologicalfisheye(topview * t); +void drawtopologicalfisheye2(topview * t); void changetopfishfocus(topview * t, float *x, float *y, float *z, int num_foci); void refresh_old_values(topview* t); diff --git a/cmd/smyrna/topview.c b/cmd/smyrna/topview.c index 38dc0fcbb..bc097af70 100755 --- a/cmd/smyrna/topview.c +++ b/cmd/smyrna/topview.c @@ -214,7 +214,7 @@ static int drawtopviewnodes(Agraph_t * g) int ind = 0; float dotsize = 0; if (view->zoom > NODE_ZOOM_LIMIT) { - dotsize = 5 / view->zoom * -1; + dotsize = 50 / view->zoom * -1; if (dotsize > 1) glPointSize(dotsize); else @@ -1119,7 +1119,7 @@ static glCompSet *glcreate_gl_topview_menu() glCompPanel *p; glCompButton *b; glCompLabel *l; - GtkRequisition requisition; + /* GtkRequisition requisition; */ if (!smyrna_icon_pan) { #ifdef _WIN32 diff --git a/cmd/smyrna/topviewdata.c b/cmd/smyrna/topviewdata.c index 9ab5c4891..9dfddb9f9 100644 --- a/cmd/smyrna/topviewdata.c +++ b/cmd/smyrna/topviewdata.c @@ -14,6 +14,7 @@ **********************************************************/ #include "topviewdata.h" +#include "btree.h" #include static int validate_group_node(tv_node * TV_Node, char *regex_string)