- advanced coordinate control for overlays over DTA_Fullscreen images.

This commit is contained in:
Christoph Oelckers 2020-06-06 12:51:03 +02:00
commit 9f6d244016
8 changed files with 105 additions and 46 deletions

View file

@ -19,3 +19,23 @@ struct FloatRect
height*=yfac;
}
};
struct DoubleRect
{
double left, top;
double width, height;
void Offset(double xofs, double yofs)
{
left += xofs;
top += yofs;
}
void Scale(double xfac, double yfac)
{
left *= xfac;
width *= xfac;
top *= yfac;
height *= yfac;
}
};