Patch by Andrej Spielmann (GSOC):
* Extend the existing agg_renderer_region with the two new subpixel methods. * Remove trailing whitespace. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26360 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2005-2006, Stephan Aßmus <[email protected]>.
|
* Copyright 2005-2006, Stephan Aßmus <[email protected]>.
|
||||||
|
* Copyright 2008, Andrej Spielmann <[email protected]>.
|
||||||
* All rights reserved. Distributed under the terms of the MIT License.
|
* All rights reserved. Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Copyright 2002-2004 Maxim Shemanarev (http://www.antigrain.com)
|
* Copyright 2002-2004 Maxim Shemanarev (http://www.antigrain.com)
|
||||||
@@ -201,6 +202,18 @@ namespace agg
|
|||||||
while(next_clip_box());
|
while(next_clip_box());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
void blend_hline_subpix(int x1, int y, int x2,
|
||||||
|
const color_type& c, cover_type cover)
|
||||||
|
{
|
||||||
|
first_clip_box();
|
||||||
|
do
|
||||||
|
{
|
||||||
|
m_ren.blend_hline_subpix(x1, y, x2, c, cover);
|
||||||
|
}
|
||||||
|
while(next_clip_box());
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
void blend_vline(int x, int y1, int y2,
|
void blend_vline(int x, int y1, int y2,
|
||||||
const color_type& c, cover_type cover)
|
const color_type& c, cover_type cover)
|
||||||
@@ -249,6 +262,18 @@ namespace agg
|
|||||||
while(next_clip_box());
|
while(next_clip_box());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
void blend_solid_hspan_subpix(int x, int y, int len,
|
||||||
|
const color_type& c, const cover_type* covers)
|
||||||
|
{
|
||||||
|
first_clip_box();
|
||||||
|
do
|
||||||
|
{
|
||||||
|
m_ren.blend_solid_hspan_subpix(x, y, len, c, covers);
|
||||||
|
}
|
||||||
|
while(next_clip_box());
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
void blend_solid_vspan(int x, int y, int len,
|
void blend_solid_vspan(int x, int y, int len,
|
||||||
const color_type& c, const cover_type* covers)
|
const color_type& c, const cover_type* covers)
|
||||||
|
|||||||
Reference in New Issue
Block a user