[Bug 2329] New: DrawText() with DT_CALCRECT incorrect in MM_HIENGLISH mode
Wine Bugs
wine-bugs at winehq.org
Thu Jul 1 12:19:50 CDT 2004
http://bugs.winehq.org/show_bug.cgi?id=2329
Summary: DrawText() with DT_CALCRECT incorrect in MM_HIENGLISH
mode
Product: Wine
Version: 20040213
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-gdi
AssignedTo: wine-bugs at winehq.org
ReportedBy: gormanjz at hotmail.com
I have tracked down a compatibility problem with a Windows application
to a bug in the way the wine DrawText() implementation handles the
DT_CALCRECT flag while in MM_HIENGLISH mapping mode.
RECT rectTemp;
rectTemp.left = rectTemp.top = rectTemp.bottom = 0;
rectTemp.right = 200;
pDC->DrawText( "Long string...", &rectTemp, DT_CALCRECT |
DT_EXTERNALLEADING | DT_WORDBREAK | DT_NOCLIP |
DT_LEFT | DT_NOPREFIX );
The DT_CALCRECT flag causes DrawText to simulate a drawing operation and
return the size of the resulting rectangle in rectTemp. When the device
context mapping mode is MM_HIENGLISH, the bottom coordinate of the
resulting rectangle should be a negative number. This is what the Win32
version of DrawText does. The wine version incorrectly returns the
absolute value of the number, however.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list