void CDVDInputStreamBluray::OverlayClear(SPlane& plane, int x, int y, int w, int h)
{
#if(BD_OVERLAY_INTERFACE_VERSION >= 2)
- CRect ovr(x
+ CRectInt ovr(x
, y
, x + w
, y + h);
/* fixup existing overlays */
for(SOverlays::iterator it = plane.o.begin(); it != plane.o.end();)
{
- CRect old((*it)->x
+ CRectInt old((*it)->x
, (*it)->y
, (*it)->x + (*it)->width
, (*it)->y + (*it)->height);
- vector<CRect> rem = old.SubtractRect(ovr);
+ vector<CRectInt> rem = old.SubtractRect(ovr);
/* if no overlap we are done */
if(rem.size() == 1 && !(rem[0] != old))
}
SOverlays add;
- for(vector<CRect>::iterator itr = rem.begin(); itr != rem.end(); ++itr)
+ for(vector<CRectInt>::iterator itr = rem.begin(); itr != rem.end(); ++itr)
{
SOverlay overlay(new CDVDOverlayImage(*(*it)
, itr->x1
T x1, y1, x2, y2;
private:
- inline static float clamp_range(T x, T l, T h) XBMC_FORCE_INLINE
+ inline static T clamp_range(T x, T l, T h) XBMC_FORCE_INLINE
{
return (x > h) ? h : ((x < l) ? l : x);
}