Author: cazfi
Date: Sat Nov 29 09:27:07 2014
New Revision: 27152

URL: http://svn.gna.org/viewcvs/freeciv?rev=27152&view=rev
Log:
Use CAIRO_FILTER_NEAREST in gtk3-client.

See patch #5457

Modified:
    trunk/client/gui-gtk-3.0/canvas.c

Modified: trunk/client/gui-gtk-3.0/canvas.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.0/canvas.c?rev=27152&r1=27151&r2=27152&view=diff
==============================================================================
--- trunk/client/gui-gtk-3.0/canvas.c   (original)
+++ trunk/client/gui-gtk-3.0/canvas.c   Sat Nov 29 09:27:07 2014
@@ -109,6 +109,7 @@
 
   cairo_scale(cr, pcanvas->zoom, pcanvas->zoom);
   cairo_set_source_surface(cr, sprite->surface, canvas_x - offset_x, canvas_y 
- offset_y);
+  cairo_pattern_set_filter(cairo_get_source(cr), CAIRO_FILTER_NEAREST);
   cairo_rectangle(cr, canvas_x - offset_x, canvas_y - offset_y,
                   MIN(width, MAX(0, sswidth - offset_x)),
                   MIN(height, MAX(0, ssheight - offset_y)));


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to