diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-05-26 15:09:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-26 15:09:22 +0200 |
| commit | 59cd18839193028ae1cccd3c458e647426fef529 (patch) | |
| tree | 0210a8304a812aa03b91562d2ef0725ee3ae64d1 | |
| parent | 4d0708e7773405c253d6ae931a517ed1866f5164 (diff) | |
| parent | 69e0d892aa01a832db442fb08287dd8e510352f9 (diff) | |
Merge pull request #6970 from spycrab/qt_win32_weight
Qt/Win32: Remove font weight calculation
| -rw-r--r-- | Source/Core/DolphinQt2/Main.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt2/Main.cpp b/Source/Core/DolphinQt2/Main.cpp index cce233098a..b5b1dd034d 100644 --- a/Source/Core/DolphinQt2/Main.cpp +++ b/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); |
