Retooled the API and implemented some of the message handlers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10789 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -774,18 +774,7 @@ void ViewDriver::SetDrawData(const DrawData *d, bool set_font_data)
|
||||
if(!sf)
|
||||
return;
|
||||
|
||||
FontStyle *style=d->font.Style();
|
||||
|
||||
if(!style)
|
||||
return;
|
||||
|
||||
FontFamily *family=(FontFamily *)style->Family();
|
||||
if(!family)
|
||||
return;
|
||||
|
||||
font_family fontfamily;
|
||||
strcpy(fontfamily,family->Name());
|
||||
font.SetFamilyAndStyle(fontfamily,style->Name());
|
||||
font.SetFamilyAndStyle(sf->GetFamily(),sf->GetStyle());
|
||||
font.SetFlags(sf->Flags());
|
||||
font.SetEncoding(sf->Encoding());
|
||||
font.SetSize(sf->Size());
|
||||
|
||||
Reference in New Issue
Block a user