BRegion scaling: fix semantics to avoid holes/overlaps

Thanks to Stippi for pointing this out.
This commit is contained in:
Adrien Destugues
2014-06-19 19:23:29 +02:00
parent 5732a55917
commit 9576c4b742
+2 -2
View File
@@ -86,8 +86,8 @@ scale_rect(clipping_rect& rect, float x, float y)
{
rect.left = (int)(rect.left * x);
rect.top = (int)(rect.top * y);
rect.right = (int)(rect.right * x);
rect.bottom = (int)(rect.bottom * y);
rect.right = (int)((rect.right + 1) * x) - 1;
rect.bottom = (int)((rect.bottom + 1) * y) - 1;
}