Stop thumbnail distortion on overview resize
ClosedPublic

Authored by seorasm on Apr 6 2018, 3:30 PM.

Details

Summary

This fixes part of bug 390835: The thumbnail was shrinking to a width of 1 pixel and becoming increasingly blurry when resizing the overview window.

I've introduced an m_oldPixmap variable which stays constant over calls to resizeEvent, and m_pixmap is now set to a scaled version of this, rather than a scaled version of itself (which seemed to be the cause of the distortion.)

On each call to updateThumbnail m_oldPixmap is set to a copy of m_pixmap.

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
seorasm requested review of this revision.Apr 6 2018, 3:30 PM
seorasm created this revision.
rempt added a subscriber: rempt.Apr 9 2018, 8:56 AM

Thanks! I'll push the patch for you :-)

This revision was not accepted when it landed; it landed in state Needs Review.Apr 9 2018, 8:56 AM
This revision was automatically updated to reflect the committed changes.