qingdoa daoo : gdi:
Get correct horizontal spacing value in the presence of ETO_PDY flag.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu May 25 04:16:39 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: f77a28ee91bd73204977e0358068019f7448e7ed
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f77a28ee91bd73204977e0358068019f7448e7ed
Author: qingdoa daoo <qingdao33122 at yahoo.com>
Date: Thu May 25 09:10:08 2006 +0800
gdi: Get correct horizontal spacing value in the presence of ETO_PDY flag.
---
dlls/gdi/font.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi/font.c b/dlls/gdi/font.c
index 40e308e..ed482af 100644
--- a/dlls/gdi/font.c
+++ b/dlls/gdi/font.c
@@ -1847,7 +1847,9 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x,
deltas = HeapAlloc(GetProcessHeap(), 0, count * sizeof(INT));
for(i = 0; i < count; i++)
{
- if(lpDx)
+ if(lpDx && (flags & ETO_PDY))
+ deltas[i] = lpDx[i*2] + char_extra;
+ else if(lpDx)
deltas[i] = lpDx[i] + char_extra;
else
{
More information about the wine-cvs
mailing list