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:
Adi Oanca 2004-02-24 11:59:11 +00:00
parent 91cf2bda4a
commit 6844f6d0eb
2 changed files with 8 additions and 4 deletions

View File

@ -54,10 +54,13 @@
//#define DISPLAYDRIVER_TEST_HACK
//---------------------------------------------------------------------------
RootLayer::RootLayer(const char *layername, int32 workspaceCount, Desktop *desktop)
: Layer(BRect(0,0,0,0), layername, 0, B_NORMAL_WINDOW_FEEL, 0, NULL)
RootLayer::RootLayer(const char *name, int32 workspaceCount,
Desktop *desktop, DisplayDriver *driver)
: Layer(BRect(0,0,0,0), name, 0, B_FOLLOW_ALL, B_WILL_DRAW, driver)
{
fDesktop = desktop;
//NOTE: be careful about this one.
fRootLayer = this;
fActiveWorkspace = NULL;
fRows = 0;
fColumns = 0;

View File

@ -39,6 +39,7 @@ class Workspace;
class Screen;
class WinBorder;
class Desktop;
class DisplayDriver;
/*!
\class RootLayer RootLayer.h
@ -51,8 +52,8 @@ class Desktop;
class RootLayer : public Layer
{
public:
RootLayer(const char *layername,
int32 workspaceCount, Desktop *desktop);
RootLayer(const char *name,
int32 workspaceCount, Desktop *desktop, DisplayDriver *driver);
virtual ~RootLayer();
virtual void Draw(const BRect &r);