Removed warnings and errors which were missed in the transition to BPortLink
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8616 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -619,12 +619,13 @@ void APRView::LoadSettings(void)
|
||||
if(port!=B_NAME_NOT_FOUND)
|
||||
{
|
||||
STRACE(("Retrieving settings from app_server\n"));
|
||||
PortLink link(port);
|
||||
PortMessage pmsg;
|
||||
BPortLink link(port);
|
||||
int32 code;
|
||||
|
||||
link.SetOpCode(AS_GET_UI_COLORS);
|
||||
link.FlushWithReply(&pmsg);
|
||||
pmsg.Read<ColorSet>(currentset);
|
||||
link.StartMessage(AS_GET_UI_COLORS);
|
||||
link.Flush();
|
||||
link.GetNextReply(&code);
|
||||
link.Read<ColorSet>(currentset);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -689,9 +690,9 @@ void APRView::NotifyServer(void)
|
||||
if(port!=B_NAME_NOT_FOUND)
|
||||
{
|
||||
STRACE(("Notifying app_server\n"));
|
||||
PortLink link(port);
|
||||
BPortLink link(port);
|
||||
|
||||
link.SetOpCode(AS_SET_UI_COLORS);
|
||||
link.StartMessage(AS_SET_UI_COLORS);
|
||||
link.Attach<ColorSet>(*currentset);
|
||||
link.Flush();
|
||||
}
|
||||
|
||||
@@ -399,11 +399,12 @@ void CurView::SetDefaults(void)
|
||||
if(port==B_NAME_NOT_FOUND)
|
||||
return;
|
||||
|
||||
PortLink link(port);
|
||||
PortMessage pmsg;
|
||||
BPortLink link(port);
|
||||
int32 code;
|
||||
|
||||
link.SetOpCode(AS_SET_SYSCURSOR_DEFAULTS);
|
||||
link.FlushWithReply(&pmsg);
|
||||
link.StartMessage(AS_SET_SYSCURSOR_DEFAULTS);
|
||||
link.Flush();
|
||||
link.GetNextReply(&code);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -253,9 +253,9 @@ void DecView::NotifyServer(void)
|
||||
return;
|
||||
|
||||
|
||||
PortLink pl(serverport);
|
||||
pl.SetOpCode(AS_SET_DECORATOR);
|
||||
pl.Attach(item->Text(),strlen(item->Text())+1);
|
||||
BPortLink pl(serverport);
|
||||
pl.StartMessage(AS_SET_DECORATOR);
|
||||
pl.AttachString(item->Text());
|
||||
pl.Flush();
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ void PreviewDriver::SetMode(const display_mode &mode)
|
||||
{
|
||||
}
|
||||
|
||||
void PreviewDriver::FillSolidRect(const BRect &rect, RGBColor &color)
|
||||
void PreviewDriver::FillSolidRect(const BRect &rect, const RGBColor &color)
|
||||
{
|
||||
view->viewbmp->Lock();
|
||||
drawview->SetHighColor(color.GetColor32());
|
||||
@@ -180,8 +180,11 @@ void PreviewDriver::FillPatternRect(const BRect &rect, const DrawData *d)
|
||||
view->viewbmp->Unlock();
|
||||
}
|
||||
|
||||
void PreviewDriver::StrokeSolidLine(const BPoint &start, const BPoint &end, RGBColor &color)
|
||||
void PreviewDriver::StrokeSolidLine(int32 x1, int32 y1, int32 x2, int32 y2, const RGBColor &color)
|
||||
{
|
||||
BPoint start(x1,y1);
|
||||
BPoint end(x2,y2);
|
||||
|
||||
view->viewbmp->Lock();
|
||||
drawview->SetHighColor(color.GetColor32());
|
||||
drawview->StrokeLine(start,end);
|
||||
@@ -190,11 +193,14 @@ void PreviewDriver::StrokeSolidLine(const BPoint &start, const BPoint &end, RGBC
|
||||
view->viewbmp->Unlock();
|
||||
}
|
||||
|
||||
void PreviewDriver::StrokePatternLine(const BPoint &start, const BPoint &end, const DrawData *d)
|
||||
void PreviewDriver::StrokePatternLine(int32 x1, int32 y1, int32 x2, int32 y2, const DrawData *d)
|
||||
{
|
||||
if(!d)
|
||||
return;
|
||||
|
||||
BPoint start(x1,y1);
|
||||
BPoint end(x2,y2);
|
||||
|
||||
view->viewbmp->Lock();
|
||||
drawview->SetHighColor(d->highcolor.GetColor32());
|
||||
drawview->SetLowColor(d->lowcolor.GetColor32());
|
||||
@@ -204,7 +210,7 @@ void PreviewDriver::StrokePatternLine(const BPoint &start, const BPoint &end, co
|
||||
view->viewbmp->Unlock();
|
||||
}
|
||||
|
||||
void PreviewDriver::StrokeSolidRect(const BRect &rect, RGBColor &color)
|
||||
void PreviewDriver::StrokeSolidRect(const BRect &rect, const RGBColor &color)
|
||||
{
|
||||
view->viewbmp->Lock();
|
||||
drawview->SetHighColor(color.GetColor32());
|
||||
@@ -234,12 +240,12 @@ void PreviewDriver::ReleaseBuffer(void)
|
||||
{
|
||||
view->viewbmp->Unlock();
|
||||
}
|
||||
|
||||
bool PreviewDriver::Lock(bigtime_t timeout=B_INFINITE_TIMEOUT)
|
||||
{
|
||||
return view->viewbmp->Lock();
|
||||
return true;
|
||||
}
|
||||
|
||||
void PreviewDriver::Unlock(void)
|
||||
{
|
||||
view->viewbmp->Unlock();
|
||||
}
|
||||
|
||||
@@ -79,11 +79,11 @@ public:
|
||||
virtual void Unlock(void);
|
||||
|
||||
protected:
|
||||
virtual void FillSolidRect(const BRect &rect, RGBColor &color);
|
||||
virtual void FillSolidRect(const BRect &rect, const RGBColor &color);
|
||||
virtual void FillPatternRect(const BRect &rect, const DrawData *d);
|
||||
virtual void StrokeSolidLine(const BPoint &start, const BPoint &end, RGBColor &color);
|
||||
virtual void StrokePatternLine(const BPoint &start, const BPoint &end, const DrawData *d);
|
||||
virtual void StrokeSolidRect(const BRect &rect, RGBColor &color);
|
||||
virtual void StrokeSolidLine(int32 x1, int32 y1, int32 x2, int32 y2, const RGBColor &color);
|
||||
virtual void StrokePatternLine(int32 x1, int32 y1, int32 x2, int32 y2, const DrawData *d);
|
||||
virtual void StrokeSolidRect(const BRect &rect, const RGBColor &color);
|
||||
|
||||
virtual bool AcquireBuffer(FBBitmap *bmp);
|
||||
virtual void ReleaseBuffer(void);
|
||||
|
||||
Reference in New Issue
Block a user