avoid unused parameter compiler warnings
This commit is contained in:
parent
2160a49b3f
commit
9a27a68f4a
5 changed files with 21 additions and 21 deletions
|
@ -68,7 +68,7 @@ namespace agg
|
|||
*x = m_vertices[m_vertex];
|
||||
*y = m_vertices[m_vertex + 1];
|
||||
m_vertex += 2;
|
||||
return (m_vertex == 2) ? path_cmd_move_to : m_cmd;
|
||||
return (m_vertex == 2) ? (unsigned)path_cmd_move_to : m_cmd;
|
||||
}
|
||||
|
||||
// Supplemantary functions. num_vertices() actually returns doubled
|
||||
|
|
|
@ -218,7 +218,7 @@ namespace agg
|
|||
static AGG_INLINE void blend_pix(value_type* p,
|
||||
unsigned cr, unsigned cg, unsigned cb,
|
||||
unsigned alpha,
|
||||
unsigned cover=0)
|
||||
unsigned /*cover*/=0)
|
||||
{
|
||||
if(alpha == 0) return;
|
||||
calc_type a = p[Order::A];
|
||||
|
@ -1341,7 +1341,7 @@ namespace agg
|
|||
// Dca' = (Da - Dca) * Sa + Dca.(1 - Sa)
|
||||
// Da' = Sa + Da - Sa.Da
|
||||
static AGG_INLINE void blend_pix(value_type* p,
|
||||
unsigned sr, unsigned sg, unsigned sb,
|
||||
unsigned /*sr*/, unsigned /*sg*/, unsigned /*sb*/,
|
||||
unsigned sa, unsigned cover)
|
||||
{
|
||||
sa = (sa * cover + 255) >> 8;
|
||||
|
@ -1612,7 +1612,7 @@ namespace agg
|
|||
base_mask = color_type::base_mask
|
||||
};
|
||||
|
||||
static AGG_INLINE void blend_pix(unsigned op, value_type* p,
|
||||
static AGG_INLINE void blend_pix(unsigned /*op*/, value_type* p,
|
||||
unsigned cr, unsigned cg, unsigned cb,
|
||||
unsigned ca,
|
||||
unsigned cover)
|
||||
|
@ -1637,7 +1637,7 @@ namespace agg
|
|||
base_mask = color_type::base_mask
|
||||
};
|
||||
|
||||
static AGG_INLINE void blend_pix(unsigned op, value_type* p,
|
||||
static AGG_INLINE void blend_pix(unsigned /*op*/, value_type* p,
|
||||
unsigned cr, unsigned cg, unsigned cb,
|
||||
unsigned ca,
|
||||
unsigned cover)
|
||||
|
@ -1667,7 +1667,7 @@ namespace agg
|
|||
base_mask = color_type::base_mask
|
||||
};
|
||||
|
||||
static AGG_INLINE void blend_pix(unsigned op, value_type* p,
|
||||
static AGG_INLINE void blend_pix(unsigned /*op*/, value_type* p,
|
||||
unsigned cr, unsigned cg, unsigned cb,
|
||||
unsigned ca,
|
||||
unsigned cover)
|
||||
|
@ -2340,7 +2340,7 @@ namespace agg
|
|||
void blend_from_color(const SrcPixelFormatRenderer& from,
|
||||
const color_type& color,
|
||||
int xdst, int ydst,
|
||||
int xsrc, int ysrc,
|
||||
int /*xsrc*/, int ysrc,
|
||||
unsigned len,
|
||||
int8u cover)
|
||||
{
|
||||
|
@ -2367,7 +2367,7 @@ namespace agg
|
|||
void blend_from_lut(const SrcPixelFormatRenderer& from,
|
||||
const color_type* color_lut,
|
||||
int xdst, int ydst,
|
||||
int xsrc, int ysrc,
|
||||
int /*xsrc*/, int ysrc,
|
||||
unsigned len,
|
||||
int8u cover)
|
||||
{
|
||||
|
@ -2792,7 +2792,7 @@ namespace agg
|
|||
void blend_from_color(const SrcPixelFormatRenderer& from,
|
||||
const color_type& color,
|
||||
int xdst, int ydst,
|
||||
int xsrc, int ysrc,
|
||||
int /*xsrc*/, int ysrc,
|
||||
unsigned len,
|
||||
int8u cover)
|
||||
{
|
||||
|
@ -2820,7 +2820,7 @@ namespace agg
|
|||
void blend_from_lut(const SrcPixelFormatRenderer& from,
|
||||
const color_type* color_lut,
|
||||
int xdst, int ydst,
|
||||
int xsrc, int ysrc,
|
||||
int /*xsrc*/, int ysrc,
|
||||
unsigned len,
|
||||
int8u cover)
|
||||
{
|
||||
|
|
|
@ -317,7 +317,7 @@ namespace agg
|
|||
rasterizer_sl_no_clip() : m_x1(0), m_y1(0) {}
|
||||
|
||||
void reset_clipping() {}
|
||||
void clip_box(coord_type x1, coord_type y1, coord_type x2, coord_type y2) {}
|
||||
void clip_box(coord_type /*x1*/, coord_type /*y1*/, coord_type /*x2*/, coord_type /*y2*/) {}
|
||||
void move_to(coord_type x1, coord_type y1) { m_x1 = x1; m_y1 = y1; }
|
||||
|
||||
template<class Rasterizer>
|
||||
|
|
|
@ -1565,11 +1565,11 @@ namespace agg
|
|||
{
|
||||
if(li.vertical())
|
||||
{
|
||||
while(li.step_ver());
|
||||
while(li.step_ver()) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
while(li.step_hor());
|
||||
while(li.step_hor()) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1620,11 +1620,11 @@ namespace agg
|
|||
line_interpolator_aa1<self_type> li(*this, lp, sx, sy);
|
||||
if(li.vertical())
|
||||
{
|
||||
while(li.step_ver());
|
||||
while(li.step_ver()) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
while(li.step_hor());
|
||||
while(li.step_hor()) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1688,11 +1688,11 @@ namespace agg
|
|||
line_interpolator_aa2<self_type> li(*this, lp, ex, ey);
|
||||
if(li.vertical())
|
||||
{
|
||||
while(li.step_ver());
|
||||
while(li.step_ver()) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
while(li.step_hor());
|
||||
while(li.step_hor()) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1759,11 +1759,11 @@ namespace agg
|
|||
line_interpolator_aa3<self_type> li(*this, lp, sx, sy, ex, ey);
|
||||
if(li.vertical())
|
||||
{
|
||||
while(li.step_ver());
|
||||
while(li.step_ver()) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
while(li.step_hor());
|
||||
while(li.step_hor()) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -924,11 +924,11 @@ namespace agg
|
|||
m_start, m_scale_x);
|
||||
if(li.vertical())
|
||||
{
|
||||
while(li.step_ver());
|
||||
while(li.step_ver()) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
while(li.step_hor());
|
||||
while(li.step_hor()) ;
|
||||
}
|
||||
m_start += uround(lp.len / m_scale_x);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue