gerbv_gdk_draw_rectangle(GdkPixmap *pixmap, GdkGC *gc,
		int filled, gint x, gint y, gint x_side, gint y_side,
		double angle_deg)
{
	int i;
	GdkPoint points[4];

	points[0].x = -(x_side >> 1);
	points[0].y = -(y_side >> 1);
	points[1].x = x_side >> 1;
	points[1].y = points[0].y;
	points[2].x = points[1].x;
	points[2].y = y_side >> 1;
	points[3].x = points[0].x;
	points[3].y = points[2].y;

	for (i = 0; i < 4; i++) {
		points[i] = rotate_point(points[i], angle_deg);
		points[i].x += x;
		points[i].y += y;
	}

	gdk_draw_polygon(pixmap, gc, filled, points, 4);

	return;
} /* gerbv_gdk_draw_rectangle */
gerbv_gdk_draw_rectangle(GdkPixmap *pixmap, GdkGC *gc,
		int filled, gint x, gint y, gint x_side, gint y_side,
		double angle_deg)
{
	int i;
	GdkPoint points[4];

	points[0].x = -(x_side >> 1);
	points[0].y = -(y_side >> 1);
	points[1].x = x_side >> 1;
	points[1].y = points[0].y;
	points[2].x = points[1].x;
	points[2].y = y_side >> 1;
	points[3].x = points[0].x;
	points[3].y = points[2].y;

	for (i = 0; i < 4; i++) {
		points[i] = rotate_point(points[i], angle_deg);
		points[i].x += x;
		points[i].y += y;
	}

	gdk_draw_polygon(pixmap, gc, filled, points, 4);

	return;
}  