Commit ebae9638 authored by Alexander Alekhin's avatar Alexander Alekhin

drawing: workaround MSVC2010 32-bit compiler bug

parent 2346ba7e
...@@ -1185,8 +1185,12 @@ FillConvexPoly( Mat& img, const Point2l* v, int npts, const void* color, int lin ...@@ -1185,8 +1185,12 @@ FillConvexPoly( Mat& img, const Point2l* v, int npts, const void* color, int lin
edges--; edges--;
} }
xs <<= XY_SHIFT - shift; xe = v[idx].x;
xe = v[idx].x << (XY_SHIFT - shift); if (XY_SHIFT - shift != 0)
{
xs <<= XY_SHIFT - shift;
xe <<= XY_SHIFT - shift;
}
/* no more edges */ /* no more edges */
if( y >= ty) if( y >= ty)
......
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