From ace3b7444189af56022a7914836e1e3f7c7bac57 Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 5 Nov 2008 20:38:11 +0000 Subject: [PATCH] Fix code to work with changed signature of fontDrawString --- cmd/smyrna/draw.c | 2 +- cmd/smyrna/topview.c | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cmd/smyrna/draw.c b/cmd/smyrna/draw.c index 0aaa261a6..790bc76e5 100755 --- a/cmd/smyrna/draw.c +++ b/cmd/smyrna/draw.c @@ -481,7 +481,7 @@ static void EmbedText(xdot_op * op, int param) fontColor(view->fontset->fonts[view->fontset->activefont],view->selectedNodeColor.R, view->selectedNodeColor.G, view->selectedNodeColor.B); fontDrawString(view->fontset->fonts[view->fontset->activefont],(int) (x - dx), op->u.text.y - (int) dy, - op->u.text.text, op->u.text.width); + op->u.text.width, op->u.text.text); } void draw_selection_box(ViewInfo * view) diff --git a/cmd/smyrna/topview.c b/cmd/smyrna/topview.c index 878e2363b..dafa4531c 100755 --- a/cmd/smyrna/topview.c +++ b/cmd/smyrna/topview.c @@ -633,11 +633,10 @@ static int draw_node_hint_boxes() (view->Topview->picked_nodes[ind]->distorted_x), (view->Topview->picked_nodes[ind]-> distorted_y+fs+fs/5.0 ), - agnameof(view->Topview->picked_nodes[ind]->Node), fs * (float)strlen(agnameof - (view->Topview->picked_nodes[ind]->Node)) / - 2.0); + (view->Topview->picked_nodes[ind]->Node)) / 2.0, + agnameof(view->Topview->picked_nodes[ind]->Node)); } return 1; } @@ -869,8 +868,8 @@ static int draw_topview_label(topview_node * v, float zdepth) // fontColorA(0,0,0,1); fontDrawString(view->fontset->fonts[view->fontset->activefont],(int) (v->distorted_x - ddx), - (int) (v->distorted_y - ddy), v->Label, - (int) (fs * strlen(v->Label)*0.7)); + (int) (v->distorted_y - ddy), + (int) (fs * strlen(v->Label)*0.7), v->Label); return 1; } else -- 2.40.0