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:
parent
35f2e1591e
commit
67948705f4
@ -410,6 +410,11 @@ bool CanvasD2D::MeasureTextLinesW(const WCHAR* str, UINT strLen, const TextForma
|
||||
// bottom. This is a workaround to emulate that behaviour.
|
||||
rect.Height += 1.0f;
|
||||
}
|
||||
else
|
||||
{
|
||||
// GDI+ compatibility: Zero height text has no visible lines.
|
||||
lines = 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user