Minor fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@1106 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-04-27 17:48:02 +00:00
parent a840b5fdc8
commit c088dcd9db
10 changed files with 19 additions and 30 deletions

View file

@ -294,11 +294,11 @@ void FontInfo::Retain(const FontInfo& f)
charset = f.charset;
}
FontInfo Draw::GetFontInfo(byte charset, Font font) {
FontInfo Draw::GetFontInfoW(Font font) {
DrawLock __;
LTIMING("GetFontInfo");
if(charset == CHARSET_DEFAULT)
charset = GetDefaultCharset();
byte charset = CHARSET_UNICODE;
if(lastFont.IsEqual(charset, font, 0, device))
return lastFont;
#ifdef PLATFORM_WIN32
@ -312,16 +312,6 @@ FontInfo Draw::GetFontInfo(byte charset, Font font) {
return fi;
}
FontInfo Draw::GetFontInfo(Font font)
{
return GetFontInfo(CHARSET_DEFAULT, font);
}
FontInfo Draw::GetFontInfoW(Font font)
{
return GetFontInfo(CHARSET_UNICODE, font);
}
void Draw::SetFont(Font font, int angle) {
DrawLock __;
LLOG("Set font: " << font << " face: " << font.GetFaceName());