From ac903216d78bee8761d426177a063c58de3471e7 Mon Sep 17 00:00:00 2001 From: Adi Oanca Date: Sun, 4 Apr 2004 20:23:12 +0000 Subject: [PATCH] fixed a bug where a bitmap was mising a pixel line/column git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7158 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/servers/app/DisplayDriver.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/headers/private/servers/app/DisplayDriver.h b/headers/private/servers/app/DisplayDriver.h index 8cb52cacfd..9eadc22ed8 100644 --- a/headers/private/servers/app/DisplayDriver.h +++ b/headers/private/servers/app/DisplayDriver.h @@ -129,7 +129,8 @@ public: ~FBBitmap(void) { } void SetBytesPerRow(const int32 &bpr) { _bytesperrow=bpr; } void SetSpace(const color_space &space) { _space=space; } - void SetSize(const int32 &w, const int32 &h) { _width=w; _height=h; } +//!!! WARNING !!! - for some reason ServerBitmap adds 1 to the width and height. We do that also. + void SetSize(const int32 &w, const int32 &h) { _width=w+1; _height=h+1; } void SetBuffer(void *ptr) { _buffer=(uint8*)ptr; } void SetBitsPerPixel(color_space space,int32 bytesperline) { _HandleSpace(space,bytesperline); } void ShallowCopy(const FBBitmap *from)