Implemented and fixed font functions in DisplayDriver
Added some copy functions to ServerBitmap Replaced LayerData component of Decorator with DrawData git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6601 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -132,6 +132,11 @@ public:
|
||||
void SetSize(const int32 &w, const int32 &h) { _width=w; _height=h; }
|
||||
void SetBuffer(void *ptr) { _buffer=(uint8*)ptr; }
|
||||
void SetBitsPerPixel(color_space space,int32 bytesperline) { _HandleSpace(space,bytesperline); }
|
||||
void ShallowCopy(const FBBitmap *from)
|
||||
{
|
||||
ServerBitmap::ShallowCopy((ServerBitmap*)from);
|
||||
SetBuffer(from->Bits());
|
||||
}
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -269,6 +274,10 @@ protected:
|
||||
virtual bool AcquireBuffer(FBBitmap *bmp);
|
||||
virtual void ReleaseBuffer(void);
|
||||
|
||||
// This is for drivers which are internally double buffered and calling this will cause the real
|
||||
// framebuffer to be updated
|
||||
virtual void Invalidate(const BRect &r);
|
||||
|
||||
void FillArc(const BRect &r, const float &angle, const float &span, DisplayDriver*, SetHorizontalLineFuncType setLine);
|
||||
void FillBezier(BPoint *pts, DisplayDriver* driver, SetHorizontalLineFuncType setLine);
|
||||
void FillEllipse(const BRect &r, DisplayDriver* driver, SetHorizontalLineFuncType setLine);
|
||||
|
||||
Reference in New Issue
Block a user