agg: Werror fixes in previously unused templates.

This commit is contained in:
Adrien Destugues
2013-12-24 09:28:44 +01:00
parent 2d0e1ed2f3
commit 756ff6c0bc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ namespace agg
m_x = m_x0 = x;
m_y = y;
if(y >= 0 && y < (int)m_pixf->height() &&
x >= 0 && x+len <= (int)m_pixf->width())
x >= 0 && (int)(x+len) <= (int)m_pixf->width())
{
return m_pix_ptr = m_pixf->pix_ptr(x, y);
}
@@ -226,7 +226,7 @@ namespace agg
value_type back_b = m_back_color.b;
value_type back_a = m_back_color.a;
const value_type *fg_ptr;
const value_type *fg_ptr = NULL;
int maxx = base_type::source().width() - 1;
int maxy = base_type::source().height() - 1;