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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user