Commit c9553a50 authored by Davis King's avatar Davis King

Fixed a bug in the fill_gradient_rounded() function. It didn't always

draw the entire rectangle.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402594
parent 7a511336
...@@ -530,11 +530,10 @@ namespace dlib ...@@ -530,11 +530,10 @@ namespace dlib
unsigned long m_prev = 0, m = radius, c_div = valid_area.height() - 1; unsigned long m_prev = 0, m = radius, c_div = valid_area.height() - 1;
long c_top = valid_area.top(); const long c_top = valid_area.top();
const long c_bottom = valid_area.bottom();
long c_bottom = valid_area.bottom(); for ( long y = c_top; y <= c_bottom;y++ )
for ( int y = c_top; y <= c_bottom;y++ )
{ {
if ( y < valid_area.top() ) if ( y < valid_area.top() )
continue; continue;
...@@ -583,8 +582,8 @@ namespace dlib ...@@ -583,8 +582,8 @@ namespace dlib
m_prev = m; m_prev = m;
draw_line ( c, point(valid_area.left() + m, y), draw_line ( c, point(rect.left() + m, y),
point(valid_area.right() - m, y), color ); point(rect.right() - m, y), color, valid_area );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment