[Bug 728] New - DrawText(DT_CALCRECT) returns width larger than an expected
wine-bugs at winehq.com
wine-bugs at winehq.com
Fri May 24 21:06:23 CDT 2002
http://bugs.winehq.com/show_bug.cgi?id=728
*** shadow/728 Fri May 24 21:06:23 2002
--- shadow/728.tmp.12777 Fri May 24 21:06:23 2002
***************
*** 0 ****
--- 1,36 ----
+ +============================================================================+
+ | DrawText(DT_CALCRECT) returns width larger than an expected |
+ +----------------------------------------------------------------------------+
+ | Bug #: 728 Product: Wine |
+ | Status: UNCONFIRMED Version: CVS |
+ | Resolution: Platform: |
+ | Severity: normal OS/Version: All |
+ | Priority: P1 Component: wine-gui |
+ +----------------------------------------------------------------------------+
+ | Assigned To: wine-bugs at winehq.com |
+ | Reported By: tony_lambregts at telusplanet.net |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | Milestone: TargetMilestone: --- |
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ The code fragment that seems to be part of the problem is around line 534 in
+ controls/button.c
+ ----
+ /* Calculate label rectangle according to label type */
+ switch (style & (BS_ICON|BS_BITMAP))
+ {
+ case BS_TEXT:
+ if (!(text = get_button_text( hwnd ))) goto empty_rect;
+ if (!text[0])
+ {
+ HeapFree( GetProcessHeap(), 0, text );
+ goto empty_rect;
+ }
+ DrawTextW(hdc, text, -1, &r, dtStyle | DT_CALCRECT);
+ HeapFree( GetProcessHeap(), 0, text );
+ break;
+ ---
+
+ This bug report is based on comments in an e-mail by Dmitry Timoshkov
\ No newline at end of file
More information about the wine-bugs
mailing list