Commit 61d30c53 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: fixed drawing arcs.

parent 5f080b12
......@@ -1071,9 +1071,8 @@ int FlowDrawQt::arc_helper(FlowCtx* ctx, int painter_type, int size, int x,
QPainter* painter = get_painter(painter_type, size, nav);
painter->setBrush(Qt::NoBrush);
// debug_print("arrow [%d, %d, %d, %d], %d, %d\n", x, y, width, height, angle1
// * 64, angle2 * 64);
painter->drawArc(x, y, width, height, angle1 * 64, angle2 * 64);
// debug_print("arrow [%d, %d, %d, %d], %d, %d\n", x, y, width, height, angle1, angle2);
painter->drawArc(x, y, width, height, angle1 * 16, angle2 * 16);
delete painter;
return 1;
......
......@@ -1009,14 +1009,12 @@ int GlowDrawQt::arc_helper(GlowWind* wind, int painter_type, int size, int x,
}
if (fill) {
// debug_print("pie [%d, %d, %d, %d], %d, %d\n", x, y, width, height, angle1
// * 64, angle2 * 64);
painter->drawPie(x, y, width, height, angle1 * 64, angle2 * 64);
// debug_print("pie [%d, %d, %d, %d], %d, %d\n", x, y, width, height, angle1, angle2);
painter->drawPie(x, y, width, height, angle1 * 16, angle2 * 16);
} else {
// debug_print("arc [%d, %d, %d, %d], %d, %d\n", x, y, width, height, angle1
// * 64, angle2 * 64);
// debug_print("arc [%d, %d, %d, %d], %d, %d\n", x, y, width, height, angle1, angle2);
painter->setBrush(Qt::NoBrush);
painter->drawArc(x, y, width, height, angle1 * 64, angle2 * 64);
painter->drawArc(x, y, width, height, angle1 * 16, angle2 * 16);
}
delete painter;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment