minor clean up

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17509 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-05-19 09:51:38 +00:00
parent 5add574bc9
commit 3e58cde6dc
1 changed files with 2 additions and 5 deletions

View File

@ -232,9 +232,6 @@ DrawState::ReadFromLink(BPrivate::LinkReceiver& link)
void
DrawState::WriteToLink(BPrivate::LinkSender& link) const
{
rgb_color hc = fHighColor.GetColor32();
rgb_color lc = fLowColor.GetColor32();
// Attach font state
link.Attach<uint32>(fFont.GetFamilyAndStyle());
link.Attach<float>(fFont.Size());
@ -248,8 +245,8 @@ DrawState::WriteToLink(BPrivate::LinkSender& link) const
// Attach view state
link.Attach<BPoint>(fPenLocation);
link.Attach<float>(fPenSize);
link.Attach(&hc, sizeof(rgb_color));
link.Attach(&lc, sizeof(rgb_color));
link.Attach<rgb_color>(fHighColor.GetColor32());
link.Attach<rgb_color>(fLowColor.GetColor32());
link.Attach<uint64>(fPattern.GetInt64());
link.Attach<BPoint>(fOrigin);
link.Attach<uint8>((uint8)fDrawingMode);