mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Gfx: Additional change to 6e04fd9
				
					
				
			This commit is contained in:
		@@ -201,7 +201,7 @@ DWRITE_TEXT_METRICS TextFormatD2D::GetMetrics(
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	// GDI+ compatibility: If the last character is a newline, GDI+ measurements seem to ignore it.
 | 
						// GDI+ compatibility: If the last character is a newline, GDI+ measurements seem to ignore it.
 | 
				
			||||||
	bool strippedLastNewLine = false;
 | 
						bool strippedLastNewLine = false;
 | 
				
			||||||
	if (str[strLen - 1] == L'\n')
 | 
						if (strLen > 2 && str[strLen - 1] == L'\n')
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		strippedLastNewLine = true;
 | 
							strippedLastNewLine = true;
 | 
				
			||||||
		--strLen;
 | 
							--strLen;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user