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)