Added support for transformation matrix in meters.

This commit is contained in:
Kimmo Pekkola
2009-07-27 11:48:57 +00:00
parent bded6e6fc7
commit dd9ab1dc04
23 changed files with 124 additions and 53 deletions

View File

@ -186,9 +186,9 @@ bool CMeterLine::Update()
** Draws the meter on the double buffer
**
*/
bool CMeterLine::Draw()
bool CMeterLine::Draw(Graphics& graphics)
{
if(!CMeter::Draw()) return false;
if(!CMeter::Draw(graphics)) return false;
double maxValue = 0.0;
int counter = 0;
@ -235,7 +235,7 @@ bool CMeterLine::Draw()
maxValue = 1.0;
}
Graphics graphics(m_MeterWindow->GetDoubleBuffer()); //GDI+
SmoothingMode mode = graphics.GetSmoothingMode();
if (m_AntiAlias)
{
graphics.SetSmoothingMode(SmoothingModeAntiAlias);
@ -321,6 +321,11 @@ bool CMeterLine::Draw()
counter++;
}
if (m_AntiAlias)
{
graphics.SetSmoothingMode(mode);
}
return true;
}