- 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:
Birunthan Mohanathas
2011-09-08 14:39:25 +00:00
parent d598c56b76
commit f17602ee1d
13 changed files with 177 additions and 184 deletions

View File

@ -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.");
}
}