airdcpp / airdcpp-windows

http://www.airdcpp.net
GNU General Public License v3.0
85 stars 19 forks source link

Unused variable LOGFONT l2; & copy-paste #1

Closed pavel-pimenov closed 10 years ago

pavel-pimenov commented 10 years ago

1. void WinUtil::setFonts() { .. LOGFONT lf, lf2;

  1. void WinUtil::init(HWND hWnd) ..... LOGFONT lf, lf2; ::GetObject((HFONT)GetStockObject(DEFAULT_GUI_FONT), sizeof(lf), &lf); SettingsManager::getInstance()->setDefault(SettingsManager::TEXT_FONT, Text::fromT(encodeFont(lf))); decodeFont(Text::toT(SETTING(TEXT_FONT)), lf); ::GetObject((HFONT)GetStockObject(ANSI_FIXED_FONT), sizeof(lf2), &lf2);
night-z commented 10 years ago

Cleaned up, but not committed yet, thanks.