diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-11-04 09:31:30 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2017-11-04 09:31:30 +0000 |
| commit | c51823602c76838600f21683fce839b3938ffc25 (patch) | |
| tree | 367dce5dec16a9fb8bb1c70b15630f87abecbb53 /src/display | |
| parent | Merge branch 'master' into powerMaskImprovements (diff) | |
| download | inkscape-c51823602c76838600f21683fce839b3938ffc25.tar.gz inkscape-c51823602c76838600f21683fce839b3938ffc25.zip | |
Remove need to restart Inkscape when changing tile multiplier.
Increase default and maximum values of tile multiplier.
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/sp-canvas.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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 |
