mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Gfx: Improve D2D compatibility with GDI+ with zero height text when calculating lines
This commit is contained in:
		| @@ -410,6 +410,11 @@ bool CanvasD2D::MeasureTextLinesW(const WCHAR* str, UINT strLen, const TextForma | |||||||
| 		// bottom. This is a workaround to emulate that behaviour. | 		// bottom. This is a workaround to emulate that behaviour. | ||||||
| 		rect.Height += 1.0f; | 		rect.Height += 1.0f; | ||||||
| 	} | 	} | ||||||
|  | 	else | ||||||
|  | 	{ | ||||||
|  | 		// GDI+ compatibility: Zero height text has no visible lines. | ||||||
|  | 		lines = 0; | ||||||
|  | 	} | ||||||
| 	return true; | 	return true; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Birunthan Mohanathas
					Birunthan Mohanathas