Permalink
Browse files

Merge pull request #6970 from spycrab/qt_win32_weight

Qt/Win32: Remove font weight calculation
  • Loading branch information...
spycrab committed May 26, 2018
2 parents 4d0708e + 69e0d89 commit 59cd18839193028ae1cccd3c458e647426fef529
Showing with 0 additions and 5 deletions.
  1. +0 −5 Source/Core/DolphinQt2/Main.cpp
@@ -111,11 +111,6 @@ int main(int argc, char* argv[])
QFont font = QApplication::font();
font.setFamily(QString::fromStdString(UTF16ToUTF8(logfont.lfFaceName)));
// LOGFONT uses a scale from 1 to 1000 to represent font weight while Qt uses a scale from 0
// to 99. LOGFONT also has a DONTCARE value which we have to ignore.
if (logfont.lfWeight != FW_DONTCARE)
font.setWeight((logfont.lfWeight / 10) - 1);
font.setItalic(logfont.lfItalic);
font.setStrikeOut(logfont.lfStrikeOut);
font.setUnderline(logfont.lfUnderline);

0 comments on commit 59cd188

Please sign in to comment.