started to implement stuff, it can actually be used and renders my test app almost like the old implementation, plus clipping
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12050 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -33,6 +33,9 @@
|
||||
|
||||
#include "DisplayDriver.h"
|
||||
|
||||
class HWInterface;
|
||||
class Painter;
|
||||
|
||||
class DisplayDriverPainter : public DisplayDriver {
|
||||
public:
|
||||
DisplayDriverPainter();
|
||||
@@ -225,16 +228,8 @@ class DisplayDriverPainter : public DisplayDriver {
|
||||
virtual bool IsCursorObscured(bool state);*/
|
||||
|
||||
|
||||
// These two will rarely be implemented by subclasses,
|
||||
// but it still needs to be possible
|
||||
virtual bool Lock(bigtime_t timeout = B_INFINITE_TIMEOUT);
|
||||
virtual void Unlock();
|
||||
|
||||
// display mode access
|
||||
virtual void SetMode(const display_mode &mode);
|
||||
void GetMode(display_mode *mode);
|
||||
inline const display_mode* DisplayMode() const
|
||||
{ return &fDisplayMode; }
|
||||
|
||||
virtual bool DumpToFile(const char *path);
|
||||
virtual ServerBitmap* DumpToBitmap();
|
||||
@@ -282,7 +277,8 @@ class DisplayDriverPainter : public DisplayDriver {
|
||||
virtual void ConstrainClippingRegion(BRegion *reg);
|
||||
|
||||
private:
|
||||
Painter fPainter;
|
||||
Painter* fPainter;
|
||||
HWInterface* fGraphicsCard;
|
||||
};
|
||||
|
||||
#endif // _DISPLAY_DRIVER_PAINTER_H_
|
||||
|
||||
Reference in New Issue
Block a user