summaryrefslogtreecommitdiffstats
path: root/src/display/sp-canvas.cpp
diff options
context:
space:
mode:
authorKarl Cheng <qantas94heavy@gmail.com>2019-05-10 07:56:07 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-05-12 12:45:27 +0000
commite6ad8433954db069908bac240f39911fc32e5025 (patch)
treee655e16ddc932b6e936ca8ff85626ee5c0fdf023 /src/display/sp-canvas.cpp
parentrename to avoid name clashes. (diff)
downloadinkscape-e6ad8433954db069908bac240f39911fc32e5025.tar.gz
inkscape-e6ad8433954db069908bac240f39911fc32e5025.zip
Remove support for LCMS 1
Now that all platforms (including macOS) now support LCMS 2, we no longer need to support LCMS 1. Fixes: https://bugs.launchpad.net/inkscape/+bug/1133014
Diffstat (limited to 'src/display/sp-canvas.cpp')
-rw-r--r--src/display/sp-canvas.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp
index f3906e24b..e8a36a3a7 100644
--- a/src/display/sp-canvas.cpp
+++ b/src/display/sp-canvas.cpp
@@ -1038,10 +1038,10 @@ static void sp_canvas_init(SPCanvas *canvas)
canvas->_changecursor = 0;
bool _is_dragging;
-#if defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2)
+#if defined(HAVE_LIBLCMS2)
canvas->_enable_cms_display_adj = false;
new (&canvas->_cms_key) Glib::ustring("");
-#endif // defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2)
+#endif // defined(HAVE_LIBLCMS2)
}
void SPCanvas::shutdownTransients()
@@ -1084,7 +1084,7 @@ void SPCanvas::dispose(GObject *object)
}
canvas->shutdownTransients();
-#if defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2)
+#if defined(HAVE_LIBLCMS2)
canvas->_cms_key.~ustring();
#endif
if (G_OBJECT_CLASS(sp_canvas_parent_class)->dispose) {
@@ -1871,7 +1871,7 @@ void SPCanvas::paintSingleBuffer(Geom::IntRect const &paint_rect, Geom::IntRect
// output to X
cairo_destroy(buf.ct);
-#if defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2)
+#if defined(HAVE_LIBLCMS2)
if (_enable_cms_display_adj) {
cmsHTRANSFORM transf = nullptr;
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
@@ -1893,7 +1893,7 @@ void SPCanvas::paintSingleBuffer(Geom::IntRect const &paint_rect, Geom::IntRect
cairo_surface_mark_dirty(imgs);
}
}
-#endif // defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2)
+#endif // defined(HAVE_LIBLCMS2)
cairo_surface_mark_dirty(_backing_store);
// cairo_surface_write_to_png( _backing_store, "debug3.png" );