drawing: workaround MSVC2010 32-bit compiler bug

pull/8031/head
Alexander Alekhin 8 years ago
parent 2346ba7ea2
commit ebae963884
  1. 6
      modules/core/src/drawing.cpp

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

Loading…
Cancel
Save