mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added support for transformation matrix in meters.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user