diff --git a/app/connectionpoint_ops.c b/app/connectionpoint_ops.c index d507737..1c529e1 100644 --- a/app/connectionpoint_ops.c +++ b/app/connectionpoint_ops.c @@ -30 +30 @@ static Color connectionpoint_color = { 0.4, 0.4, 1.0, 1.0 }; -#define CP_SZ (CONNECTIONPOINT_SIZE/2) +/* #define CP_SZ (CONNECTIONPOINT_SIZE/2) */ @@ -44,3 +44,4 @@ connectionpoint_draw(ConnectionPoint *conpoint, - irenderer->draw_pixel_line (renderer, - x-CP_SZ,y-CP_SZ, - x+CP_SZ,y+CP_SZ, + irenderer->fill_pixel_rect(renderer, + x - CONNECTIONPOINT_SIZE/2 + 1, + y - CONNECTIONPOINT_SIZE/2 + 1, + CONNECTIONPOINT_SIZE-2, CONNECTIONPOINT_SIZE-2, @@ -49,4 +50,5 @@ connectionpoint_draw(ConnectionPoint *conpoint, - irenderer->draw_pixel_line (renderer, - x+CP_SZ,y-CP_SZ, - x-CP_SZ,y+CP_SZ, - color); + irenderer->draw_pixel_rect(renderer, + x - CONNECTIONPOINT_SIZE/2, + y - CONNECTIONPOINT_SIZE/2, + CONNECTIONPOINT_SIZE-1, CONNECTIONPOINT_SIZE-1, + &color_white); diff --git a/app/handle_ops.c b/app/handle_ops.c index 54a9b97..03fe31d 100644 --- a/app/handle_ops.c +++ b/app/handle_ops.c @@ -25 +25 @@ -#define HANDLE_SIZE 7 +#define HANDLE_SIZE 9 diff --git a/lib/connectionpoint.h b/lib/connectionpoint.h index 48aec49..b172d27 100644 --- a/lib/connectionpoint.h +++ b/lib/connectionpoint.h @@ -30 +30 @@ -#define CONNECTIONPOINT_SIZE 5 +#define CONNECTIONPOINT_SIZE 9