Author: Carlos Lopez <[email protected]>
Date: Thu Feb 28 16:24:48 2013 +0100
Use nearest filter when scaling the cairo surface to fit the navigator drawing
area
---
synfig-studio/src/gui/docks/dock_navigator.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/synfig-studio/src/gui/docks/dock_navigator.cpp
b/synfig-studio/src/gui/docks/dock_navigator.cpp
index 97de96a..5c1975a 100644
--- a/synfig-studio/src/gui/docks/dock_navigator.cpp
+++ b/synfig-studio/src/gui/docks/dock_navigator.cpp
@@ -355,6 +355,7 @@ bool studio::Widget_NavView::on_expose_draw(GdkEventExpose
*/*exp*/)
cr->save();
cr->scale(sx, sx);
cairo_set_source_surface(cr->cobj(),
*cairo_surface.get(), offx/sx, offy/sx);
+ cairo_pattern_set_filter(cairo_get_source(cr->cobj()),
CAIRO_FILTER_NEAREST);
cr->paint();
cr->restore();
}
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl