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

@ -126,11 +126,11 @@ bool CMeterRoundLine::Update()
** Draws the meter on the double buffer
**
*/
bool CMeterRoundLine::Draw()
bool CMeterRoundLine::Draw(Graphics& graphics)
{
if(!CMeter::Draw()) return false;
if(!CMeter::Draw(graphics)) return false;
Graphics graphics(m_MeterWindow->GetDoubleBuffer()); //GDI+
SmoothingMode mode = graphics.GetSmoothingMode();
if (m_AntiAlias)
{
graphics.SetSmoothingMode(SmoothingModeAntiAlias);
@ -213,5 +213,10 @@ bool CMeterRoundLine::Draw()
graphics.DrawLine(&pen, cx, cy, x, y);
}
if (m_AntiAlias)
{
graphics.SetSmoothingMode(mode);
}
return true;
}