mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Manage Skins: Load order can now be changed
- Fixed that the PLAY/PLAYLOOP commands didn't work with relative paths - Errors that used to display in a messagebox are now logged and shown in the About Log dialog (which is opened when an error occurs) - Some minor tweaks
This commit is contained in:
@ -112,7 +112,7 @@ int CMeterString::GetX(bool abs)
|
||||
|
||||
if (!abs)
|
||||
{
|
||||
switch(m_Align)
|
||||
switch (m_Align)
|
||||
{
|
||||
case ALIGN_CENTER:
|
||||
x = x - (m_W / 2);
|
||||
@ -224,7 +224,7 @@ void CMeterString::Initialize()
|
||||
|
||||
FontStyle style = FontStyleRegular;
|
||||
|
||||
switch(m_Style)
|
||||
switch (m_Style)
|
||||
{
|
||||
case ITALIC:
|
||||
style = FontStyleItalic;
|
||||
@ -516,7 +516,7 @@ bool CMeterString::Update()
|
||||
}
|
||||
if (!m_Postfix.empty()) m_String += m_Postfix;
|
||||
|
||||
switch(m_textCase)
|
||||
switch (m_textCase)
|
||||
{
|
||||
case TEXTCASE_UPPER:
|
||||
StringToUpper(m_String);
|
||||
@ -588,7 +588,7 @@ bool CMeterString::DrawString(Graphics& graphics, RectF* rect)
|
||||
graphics.SetTextRenderingHint(TextRenderingHintSingleBitPerPixelGridFit);
|
||||
}
|
||||
|
||||
switch(m_Align)
|
||||
switch (m_Align)
|
||||
{
|
||||
case ALIGN_CENTER:
|
||||
stringFormat.SetAlignment(StringAlignmentCenter);
|
||||
@ -836,7 +836,7 @@ void CMeterString::EnumerateInstalledFontFamilies()
|
||||
}
|
||||
else
|
||||
{
|
||||
Log(LOG_ERROR, L"Failed to enumerate installed font families: GetFamilies() failed.");
|
||||
Log(LOG_ERROR, L"Font family enumeration: GetFamilies() failed.");
|
||||
}
|
||||
|
||||
delete [] fontFamilies;
|
||||
@ -848,6 +848,6 @@ void CMeterString::EnumerateInstalledFontFamilies()
|
||||
}
|
||||
else
|
||||
{
|
||||
Log(LOG_ERROR, L"Failed to enumerate installed font families: InstalledFontCollection() failed.");
|
||||
Log(LOG_ERROR, L"Font family enumeration: InstalledFontCollection() failed.");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user