small change for vu

Origin commit data
------------------
Commit: 5321e93301
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2019-12-08 (Sun, 08 Dec 2019)
This commit is contained in:
BPanther
2019-12-08 14:51:00 +01:00
committed by vanhofen
parent 592a51c44a
commit a82758a715

View File

@@ -70,7 +70,7 @@ CDBoxInfoWidget::CDBoxInfoWidget()
header = NULL; header = NULL;
fontWidth = fm->getWidth(); fontWidth = fm->getWidth();
sizeWidth = 6 * fm->getMaxDigitWidth() sizeWidth = 6 * fm->getMaxDigitWidth()
+ fm->getRenderWidth(std::string(" MiB") + g_Locale->getText(LOCALE_UNIT_DECIMAL)); ;//9999.99 MiB + fm->getRenderWidth(std::string(" MiB") + g_Locale->getText(LOCALE_UNIT_DECIMAL)); //9999.99 MiB
percWidth = 3 * fm->getMaxDigitWidth() percWidth = 3 * fm->getMaxDigitWidth()
+ fm->getRenderWidth("%"); //100% + fm->getRenderWidth("%"); //100%
nameWidth = fontWidth * 17; nameWidth = fontWidth * 17;
@@ -136,7 +136,7 @@ int CDBoxInfoWidget::exec(CMenuTarget* parent, const std::string &)
res = menu_return::RETURN_EXIT_ALL; res = menu_return::RETURN_EXIT_ALL;
doLoop = false; doLoop = false;
} }
else if (msg == CRCInput::RC_info) { else if (msg == CRCInput::RC_info || msg == CRCInput::RC_help) {
upmode = !upmode; upmode = !upmode;
paint(); paint();
} }
@@ -476,7 +476,7 @@ void CDBoxInfoWidget::paint()
} }
} }
ypos = std::max(ypos, ypos_mem); ypos = std::max(ypos, ypos_mem);
ypos += mheight/2; ypos += mheight/2;
int headOffset=0; int headOffset=0;