diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-14 01:08:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-14 01:08:12 +0300 |
commit | a68ab16c9d48264298861e9629604eeaa2bea188 (patch) | |
tree | a59b70a9d89b7920d312ce8e894abfe0f187b4bd /src/gui | |
parent | 0fc8851faef219be6a3e161946fd6a09930efeb0 (diff) | |
download | manaverse-a68ab16c9d48264298861e9629604eeaa2bea188.tar.gz manaverse-a68ab16c9d48264298861e9629604eeaa2bea188.tar.bz2 manaverse-a68ab16c9d48264298861e9629604eeaa2bea188.tar.xz manaverse-a68ab16c9d48264298861e9629604eeaa2bea188.zip |
Fix highlighted links drawing with bold text.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index a6d83f4d5..483d4e09e 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -773,8 +773,17 @@ int BrowserBox::calcHeight() if (c == '<' && link < CAST_S32(mLinks.size())) { - const int size = font->getWidth( - mLinks[CAST_SIZE(link)].caption) + 1; + int size; + if (bold) + { + size = boldFont->getWidth( + mLinks[CAST_SIZE(link)].caption) + 1; + } + else + { + size = font->getWidth( + mLinks[CAST_SIZE(link)].caption) + 1; + } BrowserLink &linkRef = mLinks[CAST_SIZE( link)]; |