From e30edc58265ec769e3eee225ee49ea44829c63a3 Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Wed, 12 Mar 2003 14:00:19 +0000 Subject: [PATCH] Doh! Forgot the Create_Bitmap attachments. I need my coffee... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2897 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Bitmap.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/kits/interface/Bitmap.cpp b/src/kits/interface/Bitmap.cpp index 5d5bce17af..790ccaa4de 100644 --- a/src/kits/interface/Bitmap.cpp +++ b/src/kits/interface/Bitmap.cpp @@ -2192,10 +2192,18 @@ BBitmap::InitObject(BRect bounds, color_space colorSpace, uint32 flags, // Ask the server (via our owning application) to create a bitmap. - // AS_CREATE_BITMAP: - - // Attached Data: - // None + // Attach Data: + // 1) BRect bounds + // 2) color_space space + // 3) int32 bitmap_flags + // 4) int32 bytes_per_row + // 5) int32 screen_id::id + link->SetOpCode(AS_CREATE_BITMAP); + link->Attach(bounds); + link->Attach(&colorSpace, sizeof(color_space)); + link->Attach((int32)flags); + link->Attach(bytesPerRow); + link->Attach(screenID.id); // Reply Code: SERVER_TRUE // Reply Data: @@ -2207,9 +2215,6 @@ BBitmap::InitObject(BRect bounds, color_space colorSpace, uint32 flags, // Reply Code: SERVER_FALSE // Reply Data: // None - - link->SetOpCode(AS_CREATE_BITMAP); - error=link->FlushWithReply(&replydata); // We shouldn't ever have to execute this block, but just in case...