!RainmeterQuit bang doesn't show error message even if Rainmeter is not running.

This commit is contained in:
Kimmo Pekkola 2009-08-05 08:36:38 +00:00
parent 3cb252cef1
commit 3a5b634b1b
2 changed files with 7 additions and 2 deletions

View File

@ -173,9 +173,12 @@ void Bang(HWND hWnd, const WCHAR* command)
SendMessage(wnd, WM_COPYDATA, (WPARAM)hWnd, (LPARAM)&copyData); SendMessage(wnd, WM_COPYDATA, (WPARAM)hWnd, (LPARAM)&copyData);
} }
else else
{
if (wcsicmp(L"!rainmeterquit", command) != 0)
{ {
MessageBox(hWnd, L"Rainmeter is not running.\nUnable to send the !bang to it.", L"Rainmeter", MB_OK); MessageBox(hWnd, L"Rainmeter is not running.\nUnable to send the !bang to it.", L"Rainmeter", MB_OK);
} }
}
} }
/* /*

View File

@ -395,12 +395,14 @@ bool CMeter::Draw(Graphics& graphics)
if (m_AntiAlias) if (m_AntiAlias)
{ {
graphics.SetInterpolationMode(InterpolationModeBicubic); graphics.SetInterpolationMode(InterpolationModeBicubic);
graphics.SetSmoothingMode(SmoothingModeAntiAlias); graphics.SetSmoothingMode(SmoothingModeHighQuality);
graphics.SetPixelOffsetMode(PixelOffsetModeHighQuality);
} }
else else
{ {
graphics.SetInterpolationMode(InterpolationModeDefault); graphics.SetInterpolationMode(InterpolationModeDefault);
graphics.SetSmoothingMode(SmoothingModeNone); graphics.SetSmoothingMode(SmoothingModeNone);
graphics.SetPixelOffsetMode(PixelOffsetModeDefault);
} }
if (m_SolidColor.GetA() != 0 || m_SolidColor2.GetA() != 0) if (m_SolidColor.GetA() != 0 || m_SolidColor2.GetA() != 0)