Checkin for Caz (without pain, even!) which adds rudimentary DrawBitmap support

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7223 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2004-04-16 17:52:31 +00:00
parent 8af87c1dcc
commit da08bdd09d
4 changed files with 451 additions and 3 deletions
+3 -2
View File
@@ -574,6 +574,7 @@ void ServerApp::_DispatchMessage(PortMessage *msg)
if(sbmp)
{
fBitmapList->AddItem(sbmp);
PortLink replylink(replyport);
replylink.SetOpCode(SERVER_TRUE);
replylink.Attach<int32>(sbmp->Token());
@@ -607,7 +608,7 @@ void ServerApp::_DispatchMessage(PortMessage *msg)
msg->Read<int32>(&bmp_id);
msg->Read<int32>(&replyport);
ServerBitmap *sbmp=_FindBitmap(bmp_id);
ServerBitmap *sbmp=FindBitmap(bmp_id);
if(sbmp)
{
STRACE(("ServerApp %s: Deleting Bitmap %ld\n",fSignature.String(),bmp_id));
@@ -920,7 +921,7 @@ void ServerApp::_DispatchMessage(PortMessage *msg)
\param token ID token of the bitmap to find
\return The bitmap having that ID or NULL if not found
*/
ServerBitmap *ServerApp::_FindBitmap(int32 token)
ServerBitmap *ServerApp::FindBitmap(int32 token)
{
ServerBitmap *temp;
for(int32 i=0; i<fBitmapList->CountItems();i++)