Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/windowing/StarItemSlotWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/windowing/StarItemSlotWidget.cpp')
-rw-r--r--source/windowing/StarItemSlotWidget.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/windowing/StarItemSlotWidget.cpp b/source/windowing/StarItemSlotWidget.cpp
index b579e7c..73a554f 100644
--- a/source/windowing/StarItemSlotWidget.cpp
+++ b/source/windowing/StarItemSlotWidget.cpp
@@ -197,16 +197,11 @@ if (m_item->count() > 1 && m_showCount) { // we don't need to tell people that
} else if (m_item->count() >= 1000000) { // Million (m)
formattedCount = toString(m_item->count() / 1000000) + "m";
} else if (m_item->count() >= 1000) { // Thousand (k)
- formattedCount = toString(m_item->count() / 1000) + "k";
+ formattedCount = toString(m_item->count() / 10000) + "k";
} else {
formattedCount = toString(m_item->count());
}
- // Ensure formatted count is at most 4 characters long
- if (formattedCount.length() > 4) {
- formattedCount = formattedCount.substr(0, 4);
- }
-
context()->setTextStyle(m_textStyle);
context()->setFontMode(m_countFontMode);
context()->renderInterfaceText(formattedCount, m_countPosition.translated(Vec2F(screenPosition())));