Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed repainting of cached images #558

Merged
merged 1 commit into from
Jun 20, 2022
Merged

Fixed repainting of cached images #558

merged 1 commit into from
Jun 20, 2022

Commits on Jun 9, 2022

  1. Fixed repainting of cached images

    Previously, the cached pixmap was drawn inside the repaint rectangle. That was wrong because there's no guarantee that the repaint rectangle is as big as the cached pixmap (e.g., it isn't so when the toolbar extension popup covers a part of the image and slides back). Therefore, visual glitches were imminent in special cases.
    
    This patch draws the cached pixmap inside its corresponding cache rectangle, so that the image is always repainted correctly. The paint clipping is done by Qt automatically, as QPaintEvent's doc explains.
    
    Fixes #557
    tsujan committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    4c52b32 View commit details
    Browse the repository at this point in the history