gdi: Return proper values from device context driver APIs

Phil Krylov phil at newstar.rinet.ru
Sun Oct 23 03:27:08 CDT 2005


Hi,

This patch fixes EMF generation in some programs that depend on the fact
that SetTextAlign(), SetBkMode(), SetROP2(), SetPolyFillMode(), and
SetStretchBltMode() return proper values when called on a EMF device
context.

ChangeLog:

Fixed SetTextAlign(), SetBkMode(), SetROP2(), SetPolyFillMode(), and
SetStretchBltMode() to assume that the corresponding DC driver functions
return only a BOOL success flag, and therefore a proper return value should
be generated by the main function. Fixed EMFDRV_StretchDIBits() to return a
proper value (like MFDRV_StretchDIBits already does). Added comments about
other cases of improper return values.

-- Ph.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdidrv_retval.patch
Type: text/x-patch
Size: 6019 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051023/3fbd7816/gdidrv_retval.patch


More information about the wine-patches mailing list