Draw: Fixed compilation issue with Set__

git-svn-id: svn://ultimatepp.org/upp/trunk@6273 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-08-26 11:43:41 +00:00
parent 7058e73318
commit a96ad8ee74

View file

@ -25,12 +25,16 @@ void InvalidateFontList()
sListValid = false;
}
void Set__(volatile bool& b);
const Vector<FaceInfo>& Font::List()
{
static Vector<FaceInfo> list;
if(!sListValid) {
Set__(sListValid);
list = GetAllFacesSys();
INTERLOCKED {
Set__(sListValid);
list = GetAllFacesSys();
}
}
return list;
}