small changes because of the new redrawing code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6724 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
91cf2bda4a
commit
6844f6d0eb
@ -54,10 +54,13 @@
|
|||||||
//#define DISPLAYDRIVER_TEST_HACK
|
//#define DISPLAYDRIVER_TEST_HACK
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
RootLayer::RootLayer(const char *layername, int32 workspaceCount, Desktop *desktop)
|
RootLayer::RootLayer(const char *name, int32 workspaceCount,
|
||||||
: Layer(BRect(0,0,0,0), layername, 0, B_NORMAL_WINDOW_FEEL, 0, NULL)
|
Desktop *desktop, DisplayDriver *driver)
|
||||||
|
: Layer(BRect(0,0,0,0), name, 0, B_FOLLOW_ALL, B_WILL_DRAW, driver)
|
||||||
{
|
{
|
||||||
fDesktop = desktop;
|
fDesktop = desktop;
|
||||||
|
//NOTE: be careful about this one.
|
||||||
|
fRootLayer = this;
|
||||||
fActiveWorkspace = NULL;
|
fActiveWorkspace = NULL;
|
||||||
fRows = 0;
|
fRows = 0;
|
||||||
fColumns = 0;
|
fColumns = 0;
|
||||||
|
@ -39,6 +39,7 @@ class Workspace;
|
|||||||
class Screen;
|
class Screen;
|
||||||
class WinBorder;
|
class WinBorder;
|
||||||
class Desktop;
|
class Desktop;
|
||||||
|
class DisplayDriver;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class RootLayer RootLayer.h
|
\class RootLayer RootLayer.h
|
||||||
@ -51,8 +52,8 @@ class Desktop;
|
|||||||
class RootLayer : public Layer
|
class RootLayer : public Layer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RootLayer(const char *layername,
|
RootLayer(const char *name,
|
||||||
int32 workspaceCount, Desktop *desktop);
|
int32 workspaceCount, Desktop *desktop, DisplayDriver *driver);
|
||||||
virtual ~RootLayer();
|
virtual ~RootLayer();
|
||||||
|
|
||||||
virtual void Draw(const BRect &r);
|
virtual void Draw(const BRect &r);
|
||||||
|
Loading…
Reference in New Issue
Block a user