mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Gfx: Fix D2D crash with negative width/height on String meters
This commit is contained in:
		| @@ -54,6 +54,10 @@ void TextFormatD2D::CreateLayout( | ||||
| 		m_LastString.assign(str, strLen); | ||||
| 	} | ||||
|  | ||||
| 	// The width and height of a DirectWrite layout must be non-negative. | ||||
| 	maxW = max(0.0f, maxW); | ||||
| 	maxH = max(0.0f, maxH); | ||||
|  | ||||
| 	if (m_Trimming) | ||||
| 	{ | ||||
| 		// GDI+ compatibility: If we trimming (i.e. clipping), GDI+ draws text lines even if they | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Birunthan Mohanathas
					Birunthan Mohanathas