Commit 3eb33f9b authored by Cyrille Berger's avatar Cyrille Berger

only convert to a pixmap what's need to be converted (much faster, but still...

only convert to a pixmap what's need to be converted (much faster, but still far from 1.6 speed level)


svn path=/trunk/koffice/; revision=649063
parent 4916e2cf
......@@ -146,7 +146,7 @@ void KisQPainterCanvas::paintEvent( QPaintEvent * ev )
t.restart();
gc.setCompositionMode( QPainter::CompositionMode_SourceOver );
gc.drawImage( 0, 0, m_d->prescaledImage );
gc.drawImage( ev->rect(), m_d->prescaledImage, ev->rect() );
kDebug(41010) << "Drawing image:" << t.elapsed() << endl;
#ifdef DEBUG_REPAINT
......
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