Skip to content
Snippets Groups Projects
Commit 2f4c634c authored by Paul Tvete's avatar Paul Tvete
Browse files

Rectangle painting has changed since Qt 1.0

Doc says "a stroked rectangle has a size of rectangle.size()
plus the pen width".
parent 8f1c307a
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,7 @@ void CannonField::paintTarget( QPainter *p )
{
p->setBrush( Qt::red );
p->setPen( Qt::black );
p->drawRect( targetRect() );
p->drawRect( targetRect().adjusted(0, 0, -1, -1) );
}
void CannonField::paintBarrier( QPainter *p )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment