From d163c8d59fed1b336dfcaa9c5b028b0df089d855 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Fri, 16 Mar 2007 12:08:50 +0000 Subject: [PATCH] explicit cast to FT_Pos added --- include/mapnik/font_engine_freetype.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/mapnik/font_engine_freetype.hpp b/include/mapnik/font_engine_freetype.hpp index d2e57602e..4ac62880f 100644 --- a/include/mapnik/font_engine_freetype.hpp +++ b/include/mapnik/font_engine_freetype.hpp @@ -328,11 +328,9 @@ namespace mapnik FT_Vector start; unsigned height = pixmap_.height(); - start.x = x0 * (1 << 6); - start.y = (height - y0) * (1 << 6); + start.x = static_cast(x0 * (1 << 6)); + start.y = static_cast((height - y0) * (1 << 6)); -// std::clog << "Render text at: " << x0 << "," << y0 << " " << start.x << "," << start.y << std::endl; - // now render transformed glyphs typename glyphs_t::iterator pos;