Set up sources to begin work on added BPicture support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2979 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -41,11 +41,12 @@
|
||||
#include "ServerWindow.h"
|
||||
#include "ServerCursor.h"
|
||||
#include "ServerBitmap.h"
|
||||
#include "ServerPicture.h"
|
||||
#include "ServerConfig.h"
|
||||
#include "LayerData.h"
|
||||
#include "Utils.h"
|
||||
|
||||
#define DEBUG_SERVERAPP
|
||||
//#define DEBUG_SERVERAPP
|
||||
|
||||
/*!
|
||||
\brief Constructor
|
||||
@@ -80,6 +81,7 @@ ServerApp::ServerApp(port_id sendport, port_id rcvport, int32 handlerID, char *s
|
||||
|
||||
_winlist=new BList(0);
|
||||
_bmplist=new BList(0);
|
||||
_piclist=new BList(0);
|
||||
_isactive=false;
|
||||
|
||||
ServerCursor *defaultc=cursormanager->GetCursor(B_CURSOR_DEFAULT);
|
||||
@@ -125,6 +127,16 @@ printf("ServerApp %s:~ServerApp()\n",_signature.String());
|
||||
_bmplist->MakeEmpty();
|
||||
delete _bmplist;
|
||||
|
||||
ServerPicture *temppic;
|
||||
for(i=0;i<_piclist->CountItems();i++)
|
||||
{
|
||||
temppic=(ServerPicture*)_piclist->ItemAt(i);
|
||||
if(temppic)
|
||||
delete temppic;
|
||||
}
|
||||
_piclist->MakeEmpty();
|
||||
delete _piclist;
|
||||
|
||||
delete _applink;
|
||||
_applink=NULL;
|
||||
if(_appcursor)
|
||||
@@ -450,6 +462,22 @@ void ServerApp::_DispatchMessage(int32 code, int8 *buffer)
|
||||
|
||||
break;
|
||||
}
|
||||
case AS_CREATE_PICTURE:
|
||||
{
|
||||
break;
|
||||
}
|
||||
case AS_DELETE_PICTURE:
|
||||
{
|
||||
break;
|
||||
}
|
||||
case AS_CLONE_PICTURE:
|
||||
{
|
||||
break;
|
||||
}
|
||||
case AS_DOWNLOAD_PICTURE:
|
||||
{
|
||||
break;
|
||||
}
|
||||
case AS_SET_SCREEN_MODE:
|
||||
{
|
||||
// Attached data
|
||||
|
||||
Reference in New Issue
Block a user