Code cleanups.

This commit is contained in:
spx
2010-11-22 19:52:10 +00:00
parent 45e33ce704
commit d302aa675a
3 changed files with 11 additions and 11 deletions

View File

@ -195,9 +195,9 @@ void CMeterString::Initialize()
}
// Adjust the font size with screen DPI
HDC dc = GetDC(GetDesktopWindow());
HDC dc = GetDC(0);
int dpi = GetDeviceCaps(dc, LOGPIXELSX);
ReleaseDC(GetDesktopWindow(), dc);
ReleaseDC(0, dc);
REAL size = (REAL)m_FontSize * (96.0f / (REAL)dpi);