=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: gdiplus: Fix height calculation.

Alexandre Julliard julliard at winehq.org
Fri Sep 23 10:56:50 CDT 2011


Module: wine
Branch: master
Commit: 6b7ccdb734bebda64f5a71a5d087645cd4a110cd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6b7ccdb734bebda64f5a71a5d087645cd4a110cd

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Sep 22 19:21:41 2011 +0200

gdiplus: Fix height calculation.

Spotted by Roman Shchekin.

---

 dlls/gdiplus/graphics.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 7fcff02..50d2f7c 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -4329,7 +4329,7 @@ GpStatus gdip_format_string(HDC hdc,
     nheight = roundr(rect->Height);
 
     if (rect->Width >= INT_MAX || rect->Width < 0.5) nwidth = INT_MAX;
-    if (rect->Height >= INT_MAX || rect->Width < 0.5) nheight = INT_MAX;
+    if (rect->Height >= INT_MAX || rect->Height < 0.5) nheight = INT_MAX;
 
     for(i = 0, j = 0; i < length; i++){
         /* FIXME: This makes the indexes passed to callback inaccurate. */




More information about the wine-cvs mailing list