debug code looks nicer... + others, use diff!!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4579 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -32,9 +32,12 @@
|
|||||||
#include "Desktop.h"
|
#include "Desktop.h"
|
||||||
#include "PatternHandler.h" // for pattern_union
|
#include "PatternHandler.h" // for pattern_union
|
||||||
#include "ServerConfig.h"
|
#include "ServerConfig.h"
|
||||||
|
#include "TokenHandler.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
//! TokenHandler object used to provide IDs for RootLayers(WorkSpaces)
|
||||||
|
TokenHandler rlayer_token_handler;
|
||||||
|
|
||||||
//#define DISPLAYDRIVER_TEST_HACK
|
//#define DISPLAYDRIVER_TEST_HACK
|
||||||
//#define DEBUG_ROOTLAYER
|
//#define DEBUG_ROOTLAYER
|
||||||
|
|
||||||
@@ -45,13 +48,15 @@
|
|||||||
\param gfxdriver Pointer to the related graphics driver
|
\param gfxdriver Pointer to the related graphics driver
|
||||||
*/
|
*/
|
||||||
RootLayer::RootLayer(BRect rect, const char *layername, DisplayDriver *gfxdriver)
|
RootLayer::RootLayer(BRect rect, const char *layername, DisplayDriver *gfxdriver)
|
||||||
: Layer(rect,layername,B_FOLLOW_NONE,0, NULL)
|
: Layer(rect, layername, B_NULL_TOKEN, B_FOLLOW_NONE, 0, NULL)
|
||||||
{
|
{
|
||||||
_driver=gfxdriver;
|
_view_token = rlayer_token_handler.GetToken();
|
||||||
|
|
||||||
|
_driver = gfxdriver;
|
||||||
|
_is_dirty = true;
|
||||||
|
_bgcolor = new RGBColor();
|
||||||
_invalid->MakeEmpty();
|
_invalid->MakeEmpty();
|
||||||
_invalid->Include(Bounds());
|
_invalid->Include(Bounds());
|
||||||
_is_dirty=true;
|
|
||||||
_bgcolor=new RGBColor();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Frees all allocated heap memory (which happens to be none) ;)
|
//! Frees all allocated heap memory (which happens to be none) ;)
|
||||||
@@ -86,7 +91,6 @@ void RootLayer::RequestDraw(void)
|
|||||||
_invalid->PrintToStream();
|
_invalid->PrintToStream();
|
||||||
printf("===========\n");
|
printf("===========\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for(int32 i=0; _invalid->CountRects();i++)
|
for(int32 i=0; _invalid->CountRects();i++)
|
||||||
{
|
{
|
||||||
if(_invalid->RectAt(i).IsValid())
|
if(_invalid->RectAt(i).IsValid())
|
||||||
|
|||||||
Reference in New Issue
Block a user