RenderingBuffer returns IntRect in Bounds() now. Should have been
part of an earlier commit... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24307 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
#define RENDERING_BUFFER_H
|
#define RENDERING_BUFFER_H
|
||||||
|
|
||||||
#include <GraphicsDefs.h>
|
#include <GraphicsDefs.h>
|
||||||
#include <Rect.h>
|
#include "IntRect.h"
|
||||||
|
|
||||||
class RenderingBuffer {
|
class RenderingBuffer {
|
||||||
public:
|
public:
|
||||||
@@ -24,10 +24,9 @@ class RenderingBuffer {
|
|||||||
inline uint32 BitsLength() const
|
inline uint32 BitsLength() const
|
||||||
{ return Height() * BytesPerRow(); }
|
{ return Height() * BytesPerRow(); }
|
||||||
|
|
||||||
inline BRect Bounds() const
|
inline IntRect Bounds() const
|
||||||
{ return BRect(0.0, 0.0,
|
{ return IntRect(0, 0, Width() - 1,
|
||||||
Width() - 1,
|
Height() - 1); }
|
||||||
Height() - 1); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // RENDERING_BUFFER_H
|
#endif // RENDERING_BUFFER_H
|
||||||
|
|||||||
Reference in New Issue
Block a user