Sync to AGG tree to support stippi's Painter classes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10693 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -36,6 +36,8 @@ namespace agg
|
||||
{
|
||||
public:
|
||||
typedef rgba8 color_type;
|
||||
typedef bool order_type;
|
||||
typedef rendering_buffer::row_data row_data;
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
pixfmt_rgb565(rendering_buffer& rb)
|
||||
@@ -48,7 +50,7 @@ namespace agg
|
||||
unsigned height() const { return m_rbuf->height(); }
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
color_type pixel(int x, int y)
|
||||
color_type pixel(int x, int y) const
|
||||
{
|
||||
unsigned rgb = ((int16u*)(m_rbuf->row(y)))[x];
|
||||
return color_type((rgb >> 8) & 0xF8,
|
||||
@@ -56,6 +58,12 @@ namespace agg
|
||||
(rgb << 3) & 0xF8);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
row_data span(int x, int y) const
|
||||
{
|
||||
return row_data(x, width() - 1, m_rbuf->row(y) + x * 2);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
void copy_pixel(int x, int y, const color_type& c)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user