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

@ -263,9 +263,9 @@ bool CMeterBitmap::HasActiveTransition()
** Draws the meter on the double buffer
**
*/
bool CMeterBitmap::Draw()
bool CMeterBitmap::Draw(Graphics& graphics)
{
if(!CMeter::Draw()) return false;
if(!CMeter::Draw(graphics)) return false;
int newY, newX;
@ -309,8 +309,6 @@ bool CMeterBitmap::Draw()
// Blit the images
int offset;
Graphics graphics(m_MeterWindow->GetDoubleBuffer());
if (m_Align == ALIGN_RIGHT)
{
offset = 0;
@ -435,7 +433,6 @@ bool CMeterBitmap::Draw()
}
// Blit the image
Graphics graphics(m_MeterWindow->GetDoubleBuffer());
Rect r(x, y, m_W, m_H);
graphics.DrawImage(m_Bitmap, r, newX, newY, m_W, m_H, UnitPixel);
}