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:
		| @@ -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; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kimmo Pekkola
					Kimmo Pekkola