mirror of
https://github.com/reactos/reactos.git
synced 2024-11-24 12:03:31 +08:00
[WINESYNC] d3dx9: Remove a recursive call to ID3DXFont_DrawTextW when no rect is specified.
Signed-off-by: Sven Baars <sbaars@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 9796bdc966a89cd31829f3a094bb37ec71e21871 by Sven Baars <sbaars@codeweavers.com>
This commit is contained in:
parent
cf5abba9d8
commit
e6e305520c
@ -633,17 +633,8 @@ static INT WINAPI ID3DXFontImpl_DrawTextW(ID3DXFont *iface, ID3DXSprite *sprite,
|
||||
if (format & DT_SINGLELINE)
|
||||
format &= ~DT_WORDBREAK;
|
||||
|
||||
if (!rect)
|
||||
{
|
||||
y = ID3DXFont_DrawTextW(iface, NULL, string, count, &textrect, format | DT_CALCRECT, 0);
|
||||
|
||||
if (format & DT_CALCRECT)
|
||||
return y;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (rect)
|
||||
textrect = *rect;
|
||||
}
|
||||
|
||||
x = textrect.left;
|
||||
y = textrect.top;
|
||||
@ -720,7 +711,7 @@ static INT WINAPI ID3DXFontImpl_DrawTextW(ID3DXFont *iface, ID3DXSprite *sprite,
|
||||
break;
|
||||
}
|
||||
|
||||
if (format & DT_CALCRECT)
|
||||
if (format & DT_CALCRECT && rect)
|
||||
{
|
||||
*rect = textrect;
|
||||
|
||||
|
@ -15,4 +15,4 @@ files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, include/d3dx9anim.h: sdk/inc
|
||||
include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h,
|
||||
include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
|
||||
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h}
|
||||
tags: {wine: 787d98f47ce7254dda7f644fa6d033fe1776ae38}
|
||||
tags: {wine: 9796bdc966a89cd31829f3a094bb37ec71e21871}
|
||||
|
Loading…
Reference in New Issue
Block a user