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:
parent
c7a77521ff
commit
f875a78340
|
@ -4,7 +4,7 @@
|
|||
#define RENDERING_BUFFER_H
|
||||
|
||||
#include <GraphicsDefs.h>
|
||||
#include <Rect.h>
|
||||
#include "IntRect.h"
|
||||
|
||||
class RenderingBuffer {
|
||||
public:
|
||||
|
@ -24,10 +24,9 @@ class RenderingBuffer {
|
|||
inline uint32 BitsLength() const
|
||||
{ return Height() * BytesPerRow(); }
|
||||
|
||||
inline BRect Bounds() const
|
||||
{ return BRect(0.0, 0.0,
|
||||
Width() - 1,
|
||||
Height() - 1); }
|
||||
inline IntRect Bounds() const
|
||||
{ return IntRect(0, 0, Width() - 1,
|
||||
Height() - 1); }
|
||||
};
|
||||
|
||||
#endif // RENDERING_BUFFER_H
|
||||
|
|
Loading…
Reference in New Issue