mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
String: Fixed that trailing spaces were ignored
This commit is contained in:
parent
0804bdca05
commit
8a43e40583
@ -548,6 +548,7 @@ bool CMeterString::Update()
|
|||||||
Graphics graphics(m_MeterWindow->GetDoubleBuffer());
|
Graphics graphics(m_MeterWindow->GetDoubleBuffer());
|
||||||
if (DrawString(graphics, &rect))
|
if (DrawString(graphics, &rect))
|
||||||
{
|
{
|
||||||
|
LogWithArgs(LOG_ERROR, L"%f - %s", (double)rect.Width, m_Name.c_str());
|
||||||
m_W = (int)rect.Width;
|
m_W = (int)rect.Width;
|
||||||
m_H = (int)rect.Height;
|
m_H = (int)rect.Height;
|
||||||
}
|
}
|
||||||
@ -651,7 +652,8 @@ bool CMeterString::DrawString(Graphics& graphics, RectF* rect)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
stringFormat.SetTrimming(StringTrimmingNone);
|
stringFormat.SetTrimming(StringTrimmingNone);
|
||||||
stringFormat.SetFormatFlags(StringFormatFlagsNoClip | StringFormatFlagsNoWrap);
|
stringFormat.SetFormatFlags(StringFormatFlagsNoClip | StringFormatFlagsNoWrap |
|
||||||
|
StringFormatFlagsMeasureTrailingSpaces);
|
||||||
}
|
}
|
||||||
|
|
||||||
CharacterRange range(0, stringLen);
|
CharacterRange range(0, stringLen);
|
||||||
|
Loading…
Reference in New Issue
Block a user