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

@ -158,9 +158,9 @@ bool CMeterButton::Update()
** Draws the meter on the double buffer
**
*/
bool CMeterButton::Draw()
bool CMeterButton::Draw(Graphics& graphics)
{
if(!CMeter::Draw()) return false;
if(!CMeter::Draw(graphics)) return false;
if (m_Bitmaps[m_State] == NULL) return false; // Unable to continue
@ -168,7 +168,6 @@ bool CMeterButton::Draw()
int y = GetY();
// Blit the image
Graphics graphics(m_MeterWindow->GetDoubleBuffer());
graphics.DrawCachedBitmap(m_Bitmaps[m_State], x, y);
// TEST