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:
@@ -41,6 +41,7 @@ namespace agg
|
||||
|
||||
color_type pixel(int x, int y) const
|
||||
{
|
||||
//double src_y = (y + 0.5) * m_scale - 0.5;
|
||||
double src_y = y * m_scale;
|
||||
int h = int(m_source.height()) - 1;
|
||||
int y1 = int(floor(src_y));
|
||||
@@ -170,16 +171,16 @@ namespace agg
|
||||
int line_width() const { return m_half_height_hr; }
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
color_type pixel(int x, int y) const
|
||||
void pixel(color_type* p, int x, int y) const
|
||||
{
|
||||
return m_filter->pixel_high_res(m_buf.rows(),
|
||||
x % m_width_hr + m_dilation_hr,
|
||||
y + m_offset_y_hr);
|
||||
m_filter->pixel_high_res(m_buf.rows(),
|
||||
p,
|
||||
x % m_width_hr + m_dilation_hr,
|
||||
y + m_offset_y_hr);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
const filter_type& filter() const { return m_filter; }
|
||||
filter_type& filter() { return m_filter; }
|
||||
const filter_type& filter() const { return *m_filter; }
|
||||
|
||||
private:
|
||||
line_image_pattern(const line_image_pattern<filter_type>&);
|
||||
@@ -830,8 +831,12 @@ namespace agg
|
||||
const pattern_type& pattern() const { return *m_pattern; }
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
void scale_x(double s) { m_scale_x = s; }
|
||||
double scale_x() const { return m_scale_x; }
|
||||
void scale_x(double s) { m_scale_x = s; }
|
||||
double scale_x() const { return m_scale_x; }
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
void start_x(double s) { m_start = int(s * line_subpixel_size); }
|
||||
double start_x() const { return double(m_start) / line_subpixel_size; }
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
int subpixel_width() const { return m_pattern->line_width(); }
|
||||
|
||||
Reference in New Issue
Block a user