* Minor changes due to the fact that LayerData::font member is allocated on stack now...

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4686 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca
2003-09-15 19:07:45 +00:00
parent b81089db11
commit 957320d114
4 changed files with 28 additions and 28 deletions
+8 -8
View File
@@ -867,12 +867,12 @@ void ScreenDriver::SetLayerData(LayerData *d, bool set_font_data)
if(set_font_data)
{
BFont font;
ServerFont *sf=d->font;
ServerFont *sf=&(d->font);
if(!sf)
return;
FontStyle *style=d->font->Style();
FontStyle *style=d->font.Style();
if(!style)
return;
@@ -896,11 +896,11 @@ void ScreenDriver::SetLayerData(LayerData *d, bool set_font_data)
float ScreenDriver::StringWidth(const char *string, int32 length, LayerData *d)
{
if(!string || !d || !d->font)
if(!string || !d)
return 0.0;
screenwin->Lock();
ServerFont *font=d->font;
ServerFont *font=&(d->font);
FontStyle *style=font->Style();
if(!style)
@@ -960,11 +960,11 @@ float ScreenDriver::StringWidth(const char *string, int32 length, LayerData *d)
float ScreenDriver::StringHeight(const char *string, int32 length, LayerData *d)
{
if(!string || !d || !d->font)
if(!string || !d)
return 0.0;
screenwin->Lock();
ServerFont *font=d->font;
ServerFont *font=&(d->font);
FontStyle *style=font->Style();
if(!style)
@@ -1010,13 +1010,13 @@ float ScreenDriver::StringHeight(const char *string, int32 length, LayerData *d)
void ScreenDriver::DrawString(const char *string, int32 length, BPoint pt, LayerData *d, escapement_delta *edelta)
{
if(!string || !d || !d->font)
if(!string || !d)
return;
screenwin->Lock();
pt.y--; // because of Be's backward compatibility hack
ServerFont *font=d->font;
ServerFont *font=&(d->font);
FontStyle *style=font->Style();
if(!style)