[WINESYNC] d3dx9_36: Implement ID3DXFontImpl_DrawText.
authorwinesync <ros-dev@reactos.org>
Wed, 5 Feb 2020 21:13:51 +0000 (22:13 +0100)
committerJérôme Gardou <zefklop@users.noreply.github.com>
Wed, 26 Feb 2020 17:19:18 +0000 (18:19 +0100)
commitcbed631506fc7f08ffdd140f8f9502dc5524ecba
treea82bc8ab838c2cfb65ab4143ba8bde1a69c3d394
parent83d1420b3c069ee81897f288f1098049d21cd75f
[WINESYNC] d3dx9_36: Implement ID3DXFontImpl_DrawText.

Changes by Sebastian Lackner <sebastian@fds-team.de>:
* Use pitch value for locked buffer instead of assuming that pitch = width * bytesperpixel
* Avoid one for loop to simplify code
* Ensure that DrawText doesn't dereference a NULL pointer when count != 0.

Changes by Christian Costa <titan.costa@gmail.com>
* Use dedicated variables for text width & height instead of reusing rect.right and rect.bottom
* Remove useless test in pixel conversion
* Remove left over 'partial stub' in fixme

Changes by Sebastian Lackner <sebastian@fds-team.de>:
* Replace code to convert text from ascii to widechar
* Strip terminating NULL chars before drawing text

wine-staging patch by Christian Costa <titan.costa@gmail.com>
dll/directx/wine/d3dx9_36/font.c
sdk/tools/winesync/d3dx9_staging/0015-d3dx9_36__Implement_ID3DXFontImpl_DrawText.diff [new file with mode: 0644]