Fixed a TODO - added a method for calling StringWidth with a ServerFont instead of DrawData

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12568 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2005-05-04 09:39:06 +00:00
parent 5514672d42
commit 5e6d7d522d
4 changed files with 23 additions and 6 deletions
+1 -5
View File
@@ -1237,11 +1237,7 @@ void ServerApp::DispatchMessage(int32 code, LinkMsgReader &msg)
font.SetSize(size);
font.SetSpacing(spacing);
DrawData drawdata;
drawdata.SetFont(font);
// TODO: make a DisplayDriver::StringWidth() function that takes
// just a ServerFont
width = desktop->GetDisplayDriver()->StringWidth(string, length, &drawdata);
width = desktop->GetDisplayDriver()->StringWidth(string, length, font);
replylink.StartMessage(SERVER_TRUE);
replylink.Attach<float>(width);