[0.4.9][WIN32SS:NTGDI] Fix missing text in labels and buttons for .NET apps.

Fixes CORE-15000 "Totally Broken/messed up text in many .NET applications"
and its duplicates
CORE-14679 "Missing fonts in Reg Organizer 8.16"
CORE-15398 "Messed fonts in Microsoft SQL Server 2005 Express Edition"
CORE-15611 "Word 2003: Organization Chart has corrupted display"

There was a missing break statement in ftGdiGetGlyphOutline().
Found by JIRA contributor 'I_Kill_Bugs' :-)

Add also brackets around 'case's to make code navigation easier.

Fix picked from 0.4.12-dev-865-g
0e56ec8892
This commit is contained in:
Joachim Henze 2020-11-03 14:17:07 +01:00
parent bf8cbe2769
commit 763e08ed5e

View file

@ -3362,6 +3362,7 @@ ftGdiGetGlyphOutline(
switch (iFormat)
{
case GGO_BITMAP:
{
width = gm.gmBlackBoxX;
height = gm.gmBlackBoxY;
pitch = ((width + 31) >> 5) << 2;
@ -3389,6 +3390,7 @@ ftGdiGetGlyphOutline(
}
case ft_glyph_format_outline:
{
ft_bitmap.width = width;
ft_bitmap.rows = height;
ft_bitmap.pitch = pitch;
@ -3406,12 +3408,15 @@ ftGdiGetGlyphOutline(
FT_Outline_Get_Bitmap(library, &ft_face->glyph->outline, &ft_bitmap);
IntUnLockFreeType;
break;
}
default:
DPRINT1("Loaded glyph format %x\n", ft_face->glyph->format);
return GDI_ERROR;
}
break;
}
case GGO_GRAY2_BITMAP:
case GGO_GRAY4_BITMAP:
@ -3497,6 +3502,8 @@ ftGdiGetGlyphOutline(
DPRINT1("Loaded glyph format %x\n", ft_face->glyph->format);
return GDI_ERROR;
}
break;
}
case GGO_NATIVE:
@ -3524,6 +3531,7 @@ ftGdiGetGlyphOutline(
IntUnLockFreeType;
break;
}
case GGO_BEZIER:
{
FT_Outline *outline = &ft_face->glyph->outline;