* BUG: DrawingArea draws its border correctly again.


git-svn-id: svn://localhost/gambas/trunk@3473 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2011-01-19 03:15:09 +00:00
parent 1b7476c5b3
commit 5ec2cf75d0

View file

@ -163,10 +163,11 @@ void MyDrawingArea::redraw(QRect &r, bool frame)
if (frame) if (frame)
{ {
p->setClipping(false); QPainter pf(this);
p->initFrom(this); pf.setClipping(false);
p->setRenderHint(QPainter::Antialiasing, false); pf.initFrom(this);
drawFrame(p); pf.setRenderHint(QPainter::Antialiasing, false);
drawFrame(&pf);
} }
if (_use_paint) if (_use_paint)