Verified Commit f7162ba3 authored by Thomas Holder's avatar Thomas Holder Committed by Marc Jeanmougin
Browse files

Fix drawing cache device scale when scale changes

Invalidate cached drawings when moving the Inkscape window from a HiDPI
display to a regular display. Fixes blurred rendering of cached items.
parent 2c738c3d
Pipeline #367454611 canceled with stages
in 6 minutes and 12 seconds
......@@ -728,6 +728,11 @@ DrawingItem::render(DrawingContext &dc, Geom::IntRect const &area, unsigned flag
// Render from cache if possible
// Bypass in case of pattern, see below.
if (_cached && !(flags & RENDER_BYPASS_CACHE)) {
if (_cache && _cache->device_scale() != device_scale) {
delete _cache;
_cache = nullptr;
if (_cache) {
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