Huw Davies : gdi32: Printer drivers don' t use the character extra spacing if lpdx is supplied.
Alexandre Julliard
julliard at winehq.org
Tue Mar 26 15:11:13 CDT 2013
Module: wine
Branch: master
Commit: 5713311657f68d7d19108c5b87f4f356da65497b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5713311657f68d7d19108c5b87f4f356da65497b
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Mar 26 11:14:26 2013 +0000
gdi32: Printer drivers don't use the character extra spacing if lpdx is supplied.
---
dlls/gdi32/font.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c
index 65e09d3..8fb101f 100644
--- a/dlls/gdi32/font.c
+++ b/dlls/gdi32/font.c
@@ -2266,6 +2266,9 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
y = pt.y;
char_extra = GetTextCharacterExtra(hdc);
+ if (char_extra && lpDx && GetDeviceCaps( hdc, TECHNOLOGY ) == DT_RASPRINTER)
+ char_extra = 0; /* Printer drivers don't add char_extra if lpDx is supplied */
+
if(char_extra || dc->breakExtra || breakRem || lpDx || lf.lfEscapement != 0)
{
UINT i;
More information about the wine-cvs
mailing list