From c51823602c76838600f21683fce839b3938ffc25 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Sat, 4 Nov 2017 10:31:30 +0100 Subject: Remove need to restart Inkscape when changing tile multiplier. Increase default and maximum values of tile multiplier. --- src/display/sp-canvas.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/display/sp-canvas.cpp') diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp index 17c4cc0d5..7acd645c8 100644 --- a/src/display/sp-canvas.cpp +++ b/src/display/sp-canvas.cpp @@ -1755,11 +1755,8 @@ bool SPCanvas::paintRect(int xx0, int yy0, int xx1, int yy1) setup.mouse_loc = sp_canvas_window_to_world(this, Geom::Point(x,y)); - static unsigned tile_multiplier = 0; - if (tile_multiplier == 0) { - Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - tile_multiplier = prefs->getIntLimited("/options/rendering/tile-multiplier", 1, 1, 64); - } + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + unsigned tile_multiplier = prefs->getIntLimited("/options/rendering/tile-multiplier", 16, 1, 512); if (_rendermode != Inkscape::RENDERMODE_OUTLINE) { // use 256K as a compromise to not slow down gradients -- cgit v1.2.3