- Patch by Andrew Eikum : Use font default height if GetTextExtentPoint returns empty rectangle.
- Wine port sync.
svn path=/trunk/; revision=69926
SIZE extent;
int i, j;
int start = x;
SIZE extent;
int i, j;
int start = x;
if (!lpTabPos)
cTabStops=0;
if (!lpTabPos)
cTabStops=0;
+#ifdef _WIN32K_
+ GreGetTextMetricsW( hdc, &tm );
+#else
+ GetTextMetricsW( hdc, &tm );
+#endif
+
if (cTabStops == 1)
{
defWidth = *lpTabPos;
if (cTabStops == 1)
{
defWidth = *lpTabPos;
-#ifdef _WIN32K_
- TEXTMETRICW tm;
- GreGetTextMetricsW( hdc, &tm );
-#else
- TEXTMETRICA tm;
- GetTextMetricsA( hdc, &tm );
-#endif
defWidth = 8 * tm.tmAveCharWidth;
}
defWidth = 8 * tm.tmAveCharWidth;
}
count -= j;
lpstr += j;
}
count -= j;
lpstr += j;
}
+
+ if(!extent.cy)
+ extent.cy = tm.tmHeight;
+
return MAKELONG(x - start, extent.cy);
}
return MAKELONG(x - start, extent.cy);
}