Upon construction, the font is not locked by the drawing engine, so we better lock it ourselves.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14781 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-11-08 19:29:05 +00:00
parent 5e4d267b5e
commit d08f8a6e68

View File

@ -95,7 +95,12 @@ Painter::Painter()
fPatternHandler(new PatternHandler()),
fTextRenderer(new AGGTextRenderer())
{
// Usually, the drawing engine will lock the font for us when
// needed - unfortunately, it can't know we need it here
fFont.Lock();
_UpdateFont();
fFont.Unlock();
_UpdateLineWidth();
}
@ -960,7 +965,6 @@ Painter::DrawString(const char* utf8String, uint32 length,
SetPattern(B_SOLID_HIGH);
if (fBuffer) {
bounds = fTextRenderer->RenderString(utf8String,
length,
fFontRendererSolid,