Changed BRegion to use int32 instead of long.

There is no need for fCount and fDataSize to be long, not going to have
more than 2^32 rectangles in a region. Thanks Axel for pointing that
out.
This commit is contained in:
Alex Smith
2012-08-10 16:22:51 +01:00
parent 6d796a84bd
commit ac4525b2a5
4 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -85,7 +85,7 @@ private:
BRegion(const clipping_rect& rect);
void _AdoptRegionData(BRegion& region);
bool _SetSize(long newSize);
bool _SetSize(int32 newSize);
clipping_rect _Convert(const BRect& rect) const;
clipping_rect _ConvertToInternal(const BRect& rect) const;
@@ -93,8 +93,8 @@ private:
const clipping_rect& rect) const;
private:
long fCount;
long fDataSize;
int32 fCount;
int32 fDataSize;
clipping_rect fBounds;
clipping_rect* fData;
};