diff options
Diffstat (limited to 'agg/inc/agg_ellipse_bresenham.h')
-rwxr-xr-x | agg/inc/agg_ellipse_bresenham.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/agg/inc/agg_ellipse_bresenham.h b/agg/inc/agg_ellipse_bresenham.h index 41133a473d9e..80ee97c9a97c 100755 --- a/agg/inc/agg_ellipse_bresenham.h +++ b/agg/inc/agg_ellipse_bresenham.h @@ -2,8 +2,8 @@ // Anti-Grain Geometry - Version 2.3 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) // -// Permission to copy, use, modify, sell and distribute this software -// is granted provided this copyright notice appears in all copies. +// Permission to copy, use, modify, sell and distribute this software +// is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied // warranty, and with no claim as to its suitability for any purpose. // @@ -42,7 +42,7 @@ namespace agg m_inc_y(-ry * m_two_rx2), m_cur_f(0) {} - + int dx() const { return m_dx; } int dy() const { return m_dy; } @@ -60,28 +60,28 @@ namespace agg mxy = fxy = m_cur_f + m_inc_x + m_ry2 + m_inc_y + m_rx2; if(mxy < 0) mxy = -mxy; - min_m = mx; + min_m = mx; bool flag = true; - if(min_m > my) - { - min_m = my; - flag = false; + if(min_m > my) + { + min_m = my; + flag = false; } m_dx = m_dy = 0; - if(min_m > mxy) - { + if(min_m > mxy) + { m_inc_x += m_two_ry2; m_inc_y += m_two_rx2; m_cur_f = fxy; - m_dx = 1; + m_dx = 1; m_dy = 1; return; } - if(flag) + if(flag) { m_inc_x += m_two_ry2; m_cur_f = fx; |